bshaffer / oauth2-server-php-docs

documentation for the oauth2-server-php library
231 stars 148 forks source link

[Laravel] How can I change token expiration time? #95

Closed gradosevic closed 7 years ago

gradosevic commented 7 years ago

I use this library and it's really great. The only problem that I have is that I want to extend default token expiration of one hour (3600). I don't see that any vendor configuration is deployed to Laravel's config folder. How can I do this? Thanks!

bluebaroncanada commented 7 years ago

This issue is for the actual code project and is already pending action.

gradosevic commented 5 years ago

This is what I needed

$config = array( 'access_lifetime' => 86400 ); $server = new OAuth2\Server($storage, $config);