Prerequisites
- A web application that can use packages from the npm registry and run JavaScript or TypeScript.
This includes frameworks like React, Next.js, Vue.js, Nuxt.js, Angular, Svelte, and more. - A database where you store your users
- A backend connected to your user database. It must be able to call our REST API or use our JavaScript/TypeScript SDK.
Sign up with PlainKey
Begin with signing up at plainkey.io.
- During sign-up, enter the domain name where you will implement passkeys (i.e.
example.com). You can use a subdomain (likeadmin.example.com), but then passkeys registered on that subdomain will only work on that subdomain.
PlainKey will create your first PlainKey project and provide you with a project ID and client secret:
- Project ID: Identifies your project when using the SDK/APIs. Used in both frontend and backend requests.
- Client secret: Used to get an access token for backend requests. It is scoped to the project. Keep this secret safe and never share it.