Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Unauthorized error even after sending the correct token, uid and client #261

Closed
pulkit21 opened this issue Jun 4, 2015 · 0 comments

Comments

@pulkit21
Copy link

pulkit21 commented Jun 4, 2015

app/models/devise_token_auth/concerns/user.rb

in token_is_current?(token, client_id) method BCrypt::Password.new(token_hash) == token this piece of code returning false even though both contains the same output.
And when i am doing BCrypt::Password.new(token_hash).to_s == token its returning true which works fine for me. Guys please help.

@pulkit21 pulkit21 closed this as completed Jun 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant