Skip to content

Commit

Permalink
v0.1.31.beta7. fixes #90
Browse files Browse the repository at this point in the history
  • Loading branch information
lynndylanhurley committed Jan 7, 2015
1 parent 3506fd8 commit 9634a82
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ GIT
PATH
remote: .
specs:
devise_token_auth (0.1.31.beta6)
devise_token_auth (0.1.31.beta7)
devise (~> 3.3)
rails (~> 4.2)

Expand Down
4 changes: 2 additions & 2 deletions app/models/devise_token_auth/concerns/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ def build_auth_header(token, client_id='default')

# client may use expiry to prevent validation request if expired
# must be cast as string or headers will break
expiry = self.tokens[client_id]['expiry'].to_s
expiry = self.tokens[client_id]['expiry'] || self.tokens[client_id][:expiry]

return {
"access-token" => token,
"token-type" => "Bearer",
"client" => client_id,
"expiry" => expiry,
"expiry" => expiry.to_s,
"uid" => self.uid
}
end
Expand Down
2 changes: 1 addition & 1 deletion lib/devise_token_auth/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module DeviseTokenAuth
VERSION = "0.1.31.beta6"
VERSION = "0.1.31.beta7"
end

0 comments on commit 9634a82

Please sign in to comment.