Last active
May 26, 2016 10:11
-
-
Save BeattieM/1093d2b49ff84f6ba5b6 to your computer and use it in GitHub Desktop.
Rails Doorkeeper AuthToken Manual Creation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@access_token = Doorkeeper::AccessToken.create( | |
application_id: application.id, | |
resource_owner_id: current_resource_owner.id, | |
use_refresh_token: Doorkeeper.configuration.refresh_token_enabled?, | |
expires_in: Doorkeeper.configuration.access_token_expires_in | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment