Auth0 SecurityError Occurs During Passkey Enrollment

Overview

When attempting to set up Passkey enrollments through a self service management application using for example the My Account API, a browser error occurs during passkey enrollment when the Relying Party Identifier (RP ID) does not match the current domain. Resolve this issue by setting the RP ID to a shared parent domain and updating the allowed origins in the application settings. When attempting to enroll passkeys, the browser generates the following error:

 

Uncaught SecurityError: The relying party ID is not a registrable domain suffix of, nor equal to the current domain. Subsequently, an attempt to fetch the .well-known/webauthn resource of the claimed RP ID failed

 

Applies To

  • Auth0
  • Passkeys
  • Custom Domains
  • My Account API

Cause

The RP ID scopes passkey credentials to prevent usage on unauthorized domains. The enrollment fails because the configured RP ID only allows the specific domain or its child domains, which conflicts with the application's domain.

Solution

How is the passkey enrollment error resolved?

Configure the shared parent domain and update the application settings to enable cross-subdomain passkey authentication.

  1. Set the Relying Party Identifier (RP ID) to a parent or root domain shared by both the application and the custom domain.
  2. Add the application's domain to the Allowed Origins field in the application settings.

Auth0 plans to support related origin requests.

Auth0 plans to introduce support for related origin requests in Q1+ 2027. This feature allows the Web Authentication (WebAuthn) client to query the Relying Party (RP) for a list of valid origins when the RP ID and origin do not match.

Related References

Recommended content

No recommended content found...