mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-02 02:01:46 +03:00
AccessToken empty array parameter on null
This commit is contained in:
@ -63,7 +63,7 @@ class OpenIdService extends ExternalAuthService
|
||||
{
|
||||
// Retrieve access token for current session
|
||||
$json = session()->get('openid_token');
|
||||
$accessToken = new AccessToken(json_decode($json, true));
|
||||
$accessToken = new AccessToken(json_decode($json, true) ?? []);
|
||||
|
||||
// Check if both the access token and the ID token (if present) are unexpired
|
||||
$idToken = $accessToken->getIdToken();
|
||||
|
Reference in New Issue
Block a user