token refreshment
This commit is contained in:
@@ -136,22 +136,12 @@ class Esi {
|
|||||||
$newToken->inserted_at = time();
|
$newToken->inserted_at = time();
|
||||||
$newToken->expires_in = $body->expires_in;
|
$newToken->expires_in = $body->expires_in;
|
||||||
|
|
||||||
dd($newToken);
|
|
||||||
|
|
||||||
//Return the new token model
|
//Return the new token model
|
||||||
return $newToken;
|
return $newToken;
|
||||||
|
}
|
||||||
/*
|
|
||||||
//Return the freshly saved token
|
//If we had a good token which has not expired yet, return the data
|
||||||
return EsiToken::where([
|
return $token;
|
||||||
'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) {
|
public function SetupEsiAuthentication($token = null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user