From: Jasper Weyne Date: Thu, 9 Jul 2020 16:29:44 +0000 (+0200) Subject: AccessToken empty array parameter on null X-Git-Tag: v21.10~1^2~21^2~11^2~5 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/46388a591b7cff9364dff2502419ffdafab0137c AccessToken empty array parameter on null --- diff --git a/app/Auth/Access/OpenIdService.php b/app/Auth/Access/OpenIdService.php index fc0c00298..3d8818fa5 100644 --- a/app/Auth/Access/OpenIdService.php +++ b/app/Auth/Access/OpenIdService.php @@ -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();