diff --git a/src/Guards/AuthenticationGuard.php b/src/Guards/AuthenticationGuard.php index 23f8c7a..935cad2 100644 --- a/src/Guards/AuthenticationGuard.php +++ b/src/Guards/AuthenticationGuard.php @@ -92,7 +92,7 @@ public function getCredential(): ?CredentialEntityContract return $this->getImposter(); } - if ($this->credential instanceof CredentialEntityContract) { + if (!$this->credential instanceof CredentialEntityContract) { $updated = $this->findSession(); $this->setCredential($updated); $this->pushState($updated);