Learn how to start the login flow from your frontend.
/login/initialize
and /login/finalize
endpoints do not require you to send the secret API key.
When using the Passkey API, after calling the /login/finalize
endpoint as shown above, you will receive a JSON Web Token (JWT) in the response. This JWT contains the user_id
and username
that your backend sent back when the passkey was registered.
To verify that the JWT was issued by the Passkey API, you can use the JWKS* located at /{tenant_id}/.well-known/jwks.json
. The JWKS contains the public keys used for signing the JWTs.
/AcmeCorp/.well-known/jwks.json
, you can check whether a JWT was issued by AcmeCorp or not.(There are libraries in most languages that help you do this!)