/passwordless/start
endpoint to initiate the passwordless flow. The user will get an email, an SMS with a one-time-use code, or a magic link./oauth/token
endpoint to get authentication tokens./oauth/token
. The user will click the magic link and be redirected to the application’s callback URL.
Below, we list a few code snippets that can be used to call these API endpoints for different scenarios.
Send a one-time-use code via email
send: link
.
/passwordless/start
endpoint has a rate limit of 50 requests per hour per IP. If you call the API from the server-side, your backend’s IP may easily hit these rate limits. To learn how to address this issue, read the Rate Limiting in Passwordless Endpoints section of Using Passwordless APIs.