Skip to content

johnson86tw/passkeys-test

Repository files navigation

Passkeys Test

  • RP: The Relying Party is our backend server, responsible for storing the user's public key in the database.
  • Authenticator: The authenticator refers to the passkey, such as TouchID or FaceID on a mobile device.

There are two major steps: Registration (Attestation) and Authentication (Assertion).

Registration

  1. GET generate registration options
  2. POST verify registration response
    • Accept the value returned by startRegistration().
    • Upon successful verification, store the user's credential in the database.

Authentication

  1. GET generate authentication options
  2. POST verify authentication response
    • Accept the value returned by startAuthentication().
    • If verified, update the user's authenticator's counter in the database.
      • During testing on MacOS, the counter in the authentication response from the frontend did not increase, so the server did not update the counter. Relevant issue.

References

Projects using Cloudflare for the backend:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published