All URIs are relative to https://api.clerk.dev/v1
Method | HTTP request | Description |
---|---|---|
create_sign_in_token | POST /sign_in_tokens | Create sign-in token |
revoke_sign_in_token | POST /sign_in_tokens/{sign_in_token_id}/revoke | Revoke the given sign-in token |
crate::models::SignInToken create_sign_in_token(create_sign_in_token_request) Create sign-in token
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.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
create_sign_in_token_request | Option<CreateSignInTokenRequest> |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::SignInToken revoke_sign_in_token(sign_in_token_id) Revoke the given sign-in token
Revokes a pending sign-in token
Name | Type | Description | Required | Notes |
---|---|---|---|---|
sign_in_token_id | String | The ID of the sign-in token to be revoked | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]