mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
Method descriptions
This commit is contained in:
parent
f2d320825a
commit
35c48b9416
@ -95,6 +95,9 @@ class OpenIdService extends ExternalAuthService
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check whether an access token or OpenID token isn't expired.
|
||||||
|
*/
|
||||||
protected function isUnexpired(AccessToken $accessToken): bool
|
protected function isUnexpired(AccessToken $accessToken): bool
|
||||||
{
|
{
|
||||||
$idToken = $accessToken->getIdToken();
|
$idToken = $accessToken->getIdToken();
|
||||||
@ -105,6 +108,10 @@ class OpenIdService extends ExternalAuthService
|
|||||||
return $accessTokenUnexpired && $idTokenUnexpired;
|
return $accessTokenUnexpired && $idTokenUnexpired;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generate an updated access token, through the associated refresh token.
|
||||||
|
* @throws Error
|
||||||
|
*/
|
||||||
protected function refreshAccessToken(AccessToken $accessToken): ?AccessToken
|
protected function refreshAccessToken(AccessToken $accessToken): ?AccessToken
|
||||||
{
|
{
|
||||||
// If no refresh token available, abort
|
// If no refresh token available, abort
|
||||||
|
Loading…
Reference in New Issue
Block a user