token refreshment

This commit is contained in:
2021-02-13 17:01:41 +09:00
parent 3c831b6b16
commit d1aadb1f2d

View File

@@ -136,23 +136,13 @@ class Esi {
$newToken->inserted_at = time();
$newToken->expires_in = $body->expires_in;
dd($newToken);
//Return the new token model
return $newToken;
}
/*
//Return the freshly saved token
return EsiToken::where([
'character_id' => $charId,
])->first();
*/
} else {
//If we had a good token which has not expired yet, return the data
return $token;
}
}
public function SetupEsiAuthentication($token = null) {
//Declare some variables