File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 5
5
namespace Auth0 \Laravel \Controllers ;
6
6
7
7
use Auth0 \Laravel \Auth \Guard ;
8
- use Auth0 \Laravel \Entities \CredentialEntityContract ;
8
+ use Auth0 \Laravel \Entities \{ CredentialEntityContract , InstanceEntityContract } ;
9
9
use Auth0 \Laravel \Events \{AuthenticationFailed , AuthenticationSucceeded };
10
10
use Auth0 \Laravel \Exceptions \ControllerException ;
11
11
use Auth0 \Laravel \Exceptions \Controllers \CallbackControllerException ;
@@ -161,11 +161,11 @@ private function clearSession(
161
161
): void {
162
162
$ service = $ guard ->service () ?? null ;
163
163
164
- if ($ clearTransientStorage && null !== $ service ) {
164
+ if ($ clearTransientStorage && $ service instanceof InstanceEntityContract ) {
165
165
$ service ->getConfiguration ()->getTransientStorage ()?->purge();
166
166
}
167
167
168
- if ($ clearPersistentStorage && null !== $ service ) {
168
+ if ($ clearPersistentStorage && $ service instanceof InstanceEntityContract ) {
169
169
$ service ->getConfiguration ()->getSessionStorage ()?->purge();
170
170
}
171
171
You can’t perform that action at this time.
0 commit comments