From d1aadb1f2d74cc0d9df0381aaa88f3f2523e524f Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sat, 13 Feb 2021 17:01:41 +0900 Subject: [PATCH] token refreshment --- app/Library/Esi/Esi.php | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/app/Library/Esi/Esi.php b/app/Library/Esi/Esi.php index f5b2ad589..fa4f36320 100644 --- a/app/Library/Esi/Esi.php +++ b/app/Library/Esi/Esi.php @@ -136,22 +136,12 @@ 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; - } + } + + //If we had a good token which has not expired yet, return the data + return $token; } public function SetupEsiAuthentication($token = null) {