mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-02-01 09:23:01 +08:00
AccessToken empty array parameter on null
This commit is contained in:
parent
75b4a05200
commit
46388a591b
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user