Skip to content

Commit

Permalink
Bump to 7.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims committed Jul 24, 2023
1 parent fbb6ee5 commit dca4548
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Controllers/CallbackControllerAbstract.php
Original file line number Diff line number Diff line change
@@ -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();
}

0 comments on commit dca4548

Please sign in to comment.