1
0
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:
Jasper Weyne
2020-07-09 18:29:44 +02:00
parent 75b4a05200
commit 46388a591b

View File

@ -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();