-
Notifications
You must be signed in to change notification settings - Fork 239
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
Q: Authentication tokens do not change on every login, is it normal? (R: Yes, until you reset them.) #129
Comments
Hello @shoobm, Authentication tokens are a representation of the user credentials. They are meant to be stored by clients in place of the username and password, and because of that they do not change until you decide that they have to - that's to say when you decide that the person who uses the client should provide her password and username again. If you want to change the authentication token for any user, however, all you need to do is setting it to That being said, if you are not familar with Devise, I strongly recommend you to first use it without extensions to get familiar with it. Devise is a great but complex piece of software on the first approach. Then add Simple Token Authentication to the mix. The closed issues which contain questions are tagged in way that allow to browse them as a FAQ section. Some aspects of the Simple Token Authentication mecanics which are described in the If things remain unclear, please feel welcome to re-open the corresponding issue in the FAQ. Regards! |
Ok, I'll look into it. The undefined method error was given for acts_as_token_authentication_handler_for |
Are you using Rails, or Rails::API? Support for the last one is work in progress. I'll post to #54 when ready. |
I'm using Rails::API. Ok.. thanks. |
Hi
I'm using devise and this gem both for the first time and I'm a little bit confused here.
I added this line in the application_controller.rb
but it gave an undefined method error, so i removed it and wrote a method to verify the token. I dont know what went wrong.
I'm getting the same token for a user on every login. Is token generation not handled by devise or this gem or is something wrong?
The text was updated successfully, but these errors were encountered: