This commit is contained in:
Kekskurse 2019-07-17 18:42:27 +02:00
parent bd45f6091a
commit 23d00a49f4

View file

@ -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;