AuthenticationFailed
Less than 1 minute
AuthenticationFailed
Thrown by an authenticator when credentials don't check out.
class AuthenticationFailed extends \RuntimeExceptionExtends: RuntimeException
The message is deliberately the same whatever went wrong (unknown user, wrong password, missing hash), so it can be shown to the client without revealing which identities exist.
Properties
identity
the identity that failed, or null when there isn't one (e.g. a passkey login without a username)
public readonly string $identityType: string
Methods
__construct
public __construct(string $identity): voidParameters
| Parameter | Type | Description |
|---|---|---|
$identity | string | the identity that failed, or null when there isn't one (e.g. a passkey login without a username) |
Generated by Hazaar API Doc Generator on Wed, 28 Oct 2026 08:43:30 +0000