mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-29 15:44:05 +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
|
// Retrieve access token for current session
|
||||||
$json = session()->get('openid_token');
|
$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
|
// Check if both the access token and the ID token (if present) are unexpired
|
||||||
$idToken = $accessToken->getIdToken();
|
$idToken = $accessToken->getIdToken();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user