token refreshment

This commit is contained in:
2021-02-13 16:58:54 +09:00
parent 5bb8853714
commit a3d22ab179

View File

@@ -136,6 +136,8 @@ class Esi {
$newToken->inserted_at = time(); $newToken->inserted_at = time();
$newToken->expires_in = $body->expires_in; $newToken->expires_in = $body->expires_in;
dd($newToken);
//Return the new token model //Return the new token model
return $newToken; return $newToken;
@@ -158,8 +160,6 @@ class Esi {
$esi = null; $esi = null;
$config = config('esi'); $config = config('esi');
dd($token);
$tokenExpires = time() + $token->expires_in; $tokenExpires = time() + $token->expires_in;
if($token == null) { if($token == null) {