Sign-in tokens are JWTs that can be used to sign in to an application without specifying any credentials.
A sign-in token can be used at most once and they can be consumed from the Frontend API using the ticket
strategy.
Creates a new sign-in token and associates it with the given user.
By default, sign-in tokens expire in 30 days.
You can optionally supply a different duration in seconds using the expires_in_seconds
property.
Success
Resource not found
Invalid request parameters
{- "user_id": "string",
- "expires_in_seconds": 2592000
}
{- "object": "sign_in_token",
- "id": "string",
- "status": "pending",
- "user_id": "string",
- "token": "string",
- "url": "string",
- "created_at": 0,
- "updated_at": 0
}
Revokes a pending sign-in token
Success
Request was not successful
Resource not found
{- "object": "sign_in_token",
- "id": "string",
- "status": "pending",
- "user_id": "string",
- "token": "string",
- "url": "string",
- "created_at": 0,
- "updated_at": 0
}