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

Add a method to create an access token from a user #27

Open
plandino opened this issue Jul 25, 2017 · 0 comments
Open

Add a method to create an access token from a user #27

plandino opened this issue Jul 25, 2017 · 0 comments

Comments

@plandino
Copy link
Contributor

You should be able to do something like this:

Wor::Authentication::SessionsController.generate_access_token(User.first)

But it fails in the line 33 -> renew_id = token_renew_id, because token_renew_id is a method from: Wor::Authentication::Controller

We shall move this method inside Wor::Authentication::SessionsController, because it's the only place where it's used

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