File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 55namespace Auth0 \Laravel \Controllers ;
66
77use Auth0 \Laravel \Auth \Guard ;
8- use Auth0 \Laravel \Entities \CredentialEntityContract ;
8+ use Auth0 \Laravel \Entities \{ CredentialEntityContract , InstanceEntityContract } ;
99use Auth0 \Laravel \Events \{AuthenticationFailed , AuthenticationSucceeded };
1010use Auth0 \Laravel \Exceptions \ControllerException ;
1111use Auth0 \Laravel \Exceptions \Controllers \CallbackControllerException ;
@@ -161,11 +161,11 @@ private function clearSession(
161161 ): void {
162162 $ service = $ guard ->service () ?? null ;
163163
164- if ($ clearTransientStorage && null !== $ service ) {
164+ if ($ clearTransientStorage && $ service instanceof InstanceEntityContract ) {
165165 $ service ->getConfiguration ()->getTransientStorage ()?->purge();
166166 }
167167
168- if ($ clearPersistentStorage && null !== $ service ) {
168+ if ($ clearPersistentStorage && $ service instanceof InstanceEntityContract ) {
169169 $ service ->getConfiguration ()->getSessionStorage ()?->purge();
170170 }
171171
You can’t perform that action at this time.
0 commit comments