Skip to content

Instantly share code, notes, and snippets.

@BeattieM
Last active May 26, 2016 10:11
Show Gist options
  • Save BeattieM/1093d2b49ff84f6ba5b6 to your computer and use it in GitHub Desktop.
Save BeattieM/1093d2b49ff84f6ba5b6 to your computer and use it in GitHub Desktop.
Rails Doorkeeper AuthToken Manual Creation
@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