Skip to main content

user_tokens

Overview

Nameuser_tokens
TypeResource
Idvercel.authentication.user_tokens

Fields

Methods

NameAccessible byRequired ParamsDescription
get_auth_tokenSELECTtokenIdRetrieve metadata about an authentication token belonging to the currently authenticated User.
list_auth_tokensSELECTRetrieve a list of the current User's authentication tokens.
create_auth_tokenINSERTteamIdCreates and returns a new authentication token for the currently authenticated User. The bearerToken property is only provided once, in the response body, so be sure to save it on the client for use with API requests.
delete_auth_tokenDELETEtokenIdInvalidate an authentication token, such that it will no longer be valid for future HTTP requests.
_list_auth_tokensEXECRetrieve a list of the current User's authentication tokens.
email_loginEXECdata__emailRequest a new login for a user to get a token. This will respond with a verification token and send an email to confirm the request. Once confirmed you can use the verification token to get an authentication token.
verify_tokenEXECtokenVerify the user accepted the login request and get a authentication token. The user email address and the token received after requesting the login must be added to the URL as a query string with the names email and token.