relyingParty property
RelyingPartyType
relyingParty
final
The relying party identifies your application to users, when users create/use passkeys. (Read more here).
- id: The relying party identifier is a valid domain string identifying the WebAuthn Relying Party.
In other words, its the domain your application is running on, which will be tied to the passkeys that users create.
We advise to use the root domain, not the full domain (eg
acme.com
, notapp.acme.com
norfoo.app.acme.com
), that way, passkeys created by your users can be re-used on other subdomains (eg. onfoo.acme.com
andbar.acme.com
) in the future. Read more here. - name: A string representing the name of the relying party (e.g. "Acme"). This is the name the user will be presented with when creating or validating a WebAuthn operation.
Implementation
final RelyingPartyType relyingParty;