mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-16 02:08:56 +05:30
Anal restyle
This commit is contained in:
parent
5abb84eda0
commit
e8d43f2087
@ -83,9 +83,7 @@ class AuthCode implements GrantTypeInterface {
|
||||
// remove the authorisation code, change the stage to 'granted'
|
||||
|
||||
$accessToken = SecureKey::make();
|
||||
$refreshToken = (AuthServer::hasGrantType('refresh_token')) ?
|
||||
SecureKey::make() :
|
||||
null;
|
||||
$refreshToken = (AuthServer::hasGrantType('refresh_token')) ? SecureKey::make() : null;
|
||||
|
||||
$accessTokenExpires = time() + AuthServer::getExpiresIn();
|
||||
$accessTokenExpiresIn = AuthServer::getExpiresIn();
|
||||
|
Loading…
Reference in New Issue
Block a user