esi authentication with refresh token

This commit is contained in:
2021-02-13 01:49:02 +09:00
parent 344974362c
commit e951285456

View File

@@ -95,13 +95,14 @@ class Esi {
$esi = new Eseye();
} else {
$expires = $token->inserted_at + $token->expires_in;
$token_expired = Carbon::createFromTimestamp($expires)->toDateTimeString();
$authentication = new EsiAuthentication([
'client_id' => $config['client_id'],
'secret' => $config['secret'],
'refresh_token' => $token->refresh_token,
'access_token' => $token->access_token,
'token_expires' => $expires,
'token_expires' => $token_expired,
]);
//Setup the esi variable