lucadegasperi/oauth2-server-laravel
config/oauth2.php configuration file'grant_types' => [
'refresh_token' => [
'class' => '\League\OAuth2\Server\Grant\RefreshTokenGrant',
'access_token_ttl' => 3600,
'refresh_token_ttl' => 36000
]
]
Note: The refresh token grant is to be used together with one other of the following grants:
PasswordGrant,AuthCodeGrant.
Route::post('oauth/access_token', function() {
return Response::json(Authorizer::issueAccessToken());
});
How can I help you explore Laravel packages today?