From e951285456e31fed899febb967e98bb1164ab1e0 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sat, 13 Feb 2021 01:49:02 +0900 Subject: [PATCH] esi authentication with refresh token --- app/Library/Esi/Esi.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Library/Esi/Esi.php b/app/Library/Esi/Esi.php index ca2b47287..ac229011e 100644 --- a/app/Library/Esi/Esi.php +++ b/app/Library/Esi/Esi.php @@ -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