Continues a signup that was interrupted by identifier
verification. Call this after
signup() errors with
PasskeyVerificationRequiredError, passing
an OTP code for each identifier in
verificationRequired. Updates
isAuthenticated$ and user$ on
success.
If a code is wrong and the session is still active, this
errors with a PasskeyGetTokenError where
isRetryable is true. Collect
new codes for
error.verificationRequired and call
continueSignup() again; the same passkey is
reused, so the user is not prompted again.
Requests a passkey login challenge.
Step 1 of the granular login flow. Emits the
authSession and a decoded
publicKey
(PublicKeyCredentialRequestOptions). Pass
publicKey to
navigator.credentials.get(), then hand the
credential and authSession to
getTokenWithPasskey().
Does not change the auth state.
Optionaloptions:
PasskeyLoginChallengeOptions
Requests a passkey signup challenge.
Step 1 of the granular signup flow. Emits the
authSession and a decoded
publicKey
(PublicKeyCredentialCreationOptions). Pass
publicKey to
navigator.credentials.create(), then hand
the credential and authSession to
getTokenWithPasskey().
If the connection requires identifier verification,
verificationRequired
lists the identifiers to verify. Collect the OTP codes
before calling
navigator.credentials.create() and pass
them as verification to
getTokenWithPasskey().
Does not change the auth state.
Exchanges a signed passkey credential for tokens.
Step 2 of the granular flow. Accepts the raw
PublicKeyCredential from either
navigator.credentials.create() (signup) or
navigator.credentials.get() (login).
Updates isAuthenticated$ and
user$ on success.
If an OTP code in verification is wrong and
the session is still active, this errors with a
PasskeyGetTokenError where
isRetryable is true. Call
getTokenWithPasskey() again with
error.authSession, the same
credential, and new codes for
error.verificationRequired.
Authenticates an existing user via passkey assertion.
Updates isAuthenticated$ and
user$ on success.
Optionaloptions:
PasskeyLoginOptions
Registers a new user with a passkey credential. Updates
isAuthenticated$ and user$ on
success.
If the connection requires identifier verification, this
errors with
PasskeyVerificationRequiredError before the
passkey prompt is shown. Collect the OTP codes and call
continueSignup() to finish.
Observable-based Passkey API client exposed by
AuthService.passkey.Wraps
PasskeyApiClientfrom@auth0/auth0-spa-js.signup,continueSignupandloginhandle the full WebAuthn flow internally and update Angular auth state on success.getSignupChallenge,getLoginChallengeandgetTokenWithPasskeyare granular APIs for running the WebAuthn ceremony yourself. All methods returnObservableinstead ofPromise.