Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@plandino

Description

@plandino

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions