auth->profileById($identifier); } public function retrieveByToken($identifier, #[\SensitiveParameter] $token): ?AuthenticatableContract { return null; } public function updateRememberToken(AuthenticatableContract $user, #[\SensitiveParameter] $token): void {} public function retrieveByCredentials(#[\SensitiveParameter] array $credentials): ?AuthenticatableContract { if (! isset($credentials['email'], $credentials['password']) || ! is_string($credentials['email'])) { return null; } try { return $this->auth->attemptLogin($credentials['email'], (string) $credentials['password']); } catch (InsForgeException $exception) { if ($exception->getCode() === 401) { return null; } throw $exception; } } public function validateCredentials(AuthenticatableContract $user, #[\SensitiveParameter] array $credentials): bool { return true; } public function rehashPasswordIfRequired(AuthenticatableContract $user, #[\SensitiveParameter] array $credentials, bool $force = false): void {} }