Skip to content

Commit dca4548

Browse files
committed
Bump to 7.10.0
1 parent fbb6ee5 commit dca4548

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Controllers/CallbackControllerAbstract.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace Auth0\Laravel\Controllers;
66

77
use Auth0\Laravel\Auth\Guard;
8-
use Auth0\Laravel\Entities\CredentialEntityContract;
8+
use Auth0\Laravel\Entities\{CredentialEntityContract, InstanceEntityContract};
99
use Auth0\Laravel\Events\{AuthenticationFailed, AuthenticationSucceeded};
1010
use Auth0\Laravel\Exceptions\ControllerException;
1111
use 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

0 commit comments

Comments
 (0)