MasterKale / SimpleWebAuthn

WebAuthn, Simplified. A collection of TypeScript-first libraries for simpler WebAuthn integration. Supports modern browsers, Node, Deno, and more.
https://simplewebauthn.dev
MIT License
1.62k stars 137 forks source link

Reason: SecurityError: The RP ID "xxx.xxx.com" is invalid for this domain #284

Closed CHsixnine closed 2 years ago

CHsixnine commented 2 years ago

When I call startRegistration function , it well return Reason: SecurityError: The RP ID "xxx.xxx.com" is invalid for this domain The payload is completely correct

MasterKale commented 2 years ago

What is the URL you're accessing your site from? You should be accessing it at https://xxx.xxx.com (or another subdomain on https://*.xxx.xxx.com) to be able to use that RP ID.

If you're accessing a dev instance at, say, http://localhost then you should use an RP ID of "localhost" instead.

MasterKale commented 2 years ago

Closing due to inactivity. Please feel free to reopen if this didn't solve your problem.