Search…
Sign In Tokens
Allow your users to sign in using tokens
Sign in tokens are JWT tokens generated from the Backend API and are linked to a specific user.
These tokens can be used to sign in users. More specifically, using a sign in token, a user can sign in without having to specify his credentials.
As mentioned above, the sign in tokens are linked to particular users and can only be used by them. A sign in token can be used exactly once.
After a token is generated from the Backend API, it can be used in the sign in object via the ticket strategy, i.e. using ticket as strategy and passing the generated token in the ticket property.

Available requests

  • POST /v1/sign_in_tokens
  • POST /v1/sign_in_tokens/:id/revoke

Example sign in token schema

1
{
2
"object": "sign_in_token",
3
"id": "sit_26Ed5ZqqJcOjRwecRQij2ZovDdG",
4
"user_id": "user_26Ect5GuCCeaFWwSDiiKcgAGtVk",
5
"token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJFeHBpcmVzSW5TZWNvbmRzIjo1LCJleHAiOjE2NDY5OTI1MDEsImlpZCI6Imluc18yNkVja3R0TnJDamE3YTZQT0xINTVDQVBpZmQiLCJzaWQiOiJzaXRfMjZFZDVacXFKY09qUndlY1JRaWoyWm92RGRHIiwic3QiOiJzaWduX2luX3Rva2VuIn0.j6Gwl6g2QcAJ9AjRvG1k7aUrnMCyPU49hYgTlmDG9gD_8Yd7sxUepyDdCHRaDaABlWg-G3tUs09HRfdrAXM-4e6NwcEy_ak1LWkE3G6WVhPnlomwH7n7BsIbmoybf91Eel0XRlb33XdUVaWNaA_CH8INkVLtXfZWTorNsAN2-Es_6G-Jtz4Zvw8hZBtXQDMSlyl27rxohMvfefv-ffG6Kd0XsvT9yYj2kik5KcONMWO6XEPtMZRoHzMabnmPQbLrUPBmbnU_1UVFpxL0LfuOXlxbV3LIvuejmhNZZtR0ZwcbrAnXruof4KjmCK_QOpqShI3dTlyYTV18amy2se5oxA",
6
"status": "pending",
7
"created_at": 1638000669544,
8
"updated_at": 1638000669544
9
}
Copied!
post
https://api.clerk.dev
/v1/sign_in_tokens
Create sign in token
post
https://api.clerk.dev
/v1/sign_in_tokens/:id/revoke
Revoke sign in token