esi authentication with refresh token
This commit is contained in:
@@ -95,13 +95,14 @@ class Esi {
|
|||||||
$esi = new Eseye();
|
$esi = new Eseye();
|
||||||
} else {
|
} else {
|
||||||
$expires = $token->inserted_at + $token->expires_in;
|
$expires = $token->inserted_at + $token->expires_in;
|
||||||
|
$token_expired = Carbon::createFromTimestamp($expires)->toDateTimeString();
|
||||||
|
|
||||||
$authentication = new EsiAuthentication([
|
$authentication = new EsiAuthentication([
|
||||||
'client_id' => $config['client_id'],
|
'client_id' => $config['client_id'],
|
||||||
'secret' => $config['secret'],
|
'secret' => $config['secret'],
|
||||||
'refresh_token' => $token->refresh_token,
|
'refresh_token' => $token->refresh_token,
|
||||||
'access_token' => $token->access_token,
|
'access_token' => $token->access_token,
|
||||||
'token_expires' => $expires,
|
'token_expires' => $token_expired,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
//Setup the esi variable
|
//Setup the esi variable
|
||||||
|
|||||||
Reference in New Issue
Block a user