pub enum PasskeyError {
ChallengeNotFound,
NotAllowed,
FailedToVerifyRegistration,
UnknownCredential,
PasskeyNotFound,
AuthenticationFailed,
InvalidAssertion,
OriginNotConfigured,
}Expand description
Why a passkey request failed. Codes and statuses match Better Auth’s passkey plugin.
Variants§
ChallengeNotFound
CHALLENGE_NOT_FOUND (400): no challenge cookie, or its challenge expired, was used
already, or belongs to the other ceremony.
NotAllowed
YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY (401): the challenge was issued to
another user, or the passkey being renamed isn’t the caller’s.
FailedToVerifyRegistration
FAILED_TO_VERIFY_REGISTRATION (400): the attestation doesn’t check out, or the
credential is registered already.
UnknownCredential
PASSKEY_NOT_FOUND (401): no passkey has the credential that signed in.
PasskeyNotFound
PASSKEY_NOT_FOUND (404): no passkey has this id.
AuthenticationFailed
AUTHENTICATION_FAILED (401): the assertion’s signature is wrong.
InvalidAssertion
AUTHENTICATION_FAILED (400): the assertion is malformed, answers another challenge
or origin, lacks user verification, or its signature counter didn’t advance.
OriginNotConfigured
ORIGIN_NOT_CONFIGURED (500): the rpID and origins don’t make a valid relying party.