Method descriptions

This commit is contained in:
Jasper Weyne 2020-08-05 00:18:43 +02:00
parent f2d320825a
commit 35c48b9416

View File

@ -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