-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Customizing Token Expiration
Greg Leppert edited this page Jan 9, 2015
·
9 revisions
By default, access grants expires in 10 minutes. You can change this setting in the configuration:
Doorkeeper.configure do
authorization_code_expires_in 20.minutes
end
DO NOT set this option to nil
. This token should always expire in a short time
By default, all access tokens expires in 2 hours. You can change this in the configuration:
Doorkeeper.configure do
access_token_expires_in 4.hours
end
If you set the option to nil
the access token will never expire (not recommended)
Unlike access grants and access tokens, refresh tokens do not have a TTL expiration.