Fix Bug
This commit is contained in:
parent
bd45f6091a
commit
23d00a49f4
1 changed files with 2 additions and 0 deletions
|
@ -126,6 +126,8 @@ class oAuthController extends Controller
|
||||||
$accessToken = AccessToken::createToken($access);
|
$accessToken = AccessToken::createToken($access);
|
||||||
$refreshToken = RefreshToken::createToken($access);
|
$refreshToken = RefreshToken::createToken($access);
|
||||||
|
|
||||||
|
$code->delete();
|
||||||
|
|
||||||
$token = new Token();
|
$token = new Token();
|
||||||
$token->expires_at = $accessToken->expires_at;
|
$token->expires_at = $accessToken->expires_at;
|
||||||
$token->token = $accessToken->token;
|
$token->token = $accessToken->token;
|
||||||
|
|
Reference in a new issue