From dca454830dd6edd7f211ae17878ddc8c4b3d3f9b Mon Sep 17 00:00:00 2001 From: Evan Sims Date: Mon, 24 Jul 2023 02:39:30 -0500 Subject: [PATCH] Bump to 7.10.0 --- src/Controllers/CallbackControllerAbstract.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Controllers/CallbackControllerAbstract.php b/src/Controllers/CallbackControllerAbstract.php index ce78b15..c91ca7a 100644 --- a/src/Controllers/CallbackControllerAbstract.php +++ b/src/Controllers/CallbackControllerAbstract.php @@ -5,7 +5,7 @@ namespace Auth0\Laravel\Controllers; use Auth0\Laravel\Auth\Guard; -use Auth0\Laravel\Entities\CredentialEntityContract; +use Auth0\Laravel\Entities\{CredentialEntityContract, InstanceEntityContract}; use Auth0\Laravel\Events\{AuthenticationFailed, AuthenticationSucceeded}; use Auth0\Laravel\Exceptions\ControllerException; use Auth0\Laravel\Exceptions\Controllers\CallbackControllerException; @@ -161,11 +161,11 @@ private function clearSession( ): void { $service = $guard->service() ?? null; - if ($clearTransientStorage && null !== $service) { + if ($clearTransientStorage && $service instanceof InstanceEntityContract) { $service->getConfiguration()->getTransientStorage()?->purge(); } - if ($clearPersistentStorage && null !== $service) { + if ($clearPersistentStorage && $service instanceof InstanceEntityContract) { $service->getConfiguration()->getSessionStorage()?->purge(); }