danschultzer / phoenix_oauth2_provider

Get an OAuth 2 provider running in your phoenix with controllers, views and models in just two minutes
MIT License
84 stars 41 forks source link

Access token's expire #31

Closed guilopes22 closed 4 years ago

guilopes22 commented 4 years ago

Is there a way to make the access token don't expire?

danschultzer commented 4 years ago

Yes, just add access_token_expires_in: nil to the config: https://github.com/danschultzer/ex_oauth2_provider/blob/v0.5.5/lib/ex_oauth2_provider.ex#L34-L35

If access_token_expires_in is set to nil, access tokens will never expire.