Clerk.SignInToken (Clerk SDK v1.0.0)
Summary
Functions
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.
Revokes a pending sign-in token
Functions
Link to this function
create(user_id, params \\ %{}, opts \\ [])
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.
REQUEST BODY SCHEMA: application/json
user_id
string The ID of the user that can use the newly created sign in token
expires_in_seconds
integer Default: 2592000 Optional parameter to specify the life duration of the sign in token in seconds. By default, the duration is 30 days.
Link to this function
revoke(id, opts \\ [])
Revokes a pending sign-in token