Skip to content

Latest commit

 

History

History
70 lines (38 loc) · 2.16 KB

SignInTokensApi.md

File metadata and controls

70 lines (38 loc) · 2.16 KB

\SignInTokensApi

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

create_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.

Parameters

Name Type Description Required Notes
create_sign_in_token_request Option<CreateSignInTokenRequest>

Return type

crate::models::SignInToken

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

revoke_sign_in_token

crate::models::SignInToken revoke_sign_in_token(sign_in_token_id) Revoke the given sign-in token

Revokes a pending sign-in token

Parameters

Name Type Description Required Notes
sign_in_token_id String The ID of the sign-in token to be revoked [required]

Return type

crate::models::SignInToken

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]