UserLoginTokens
Introduction
UserLoginTokens are short-lived, user-specific tokens that allow a browser to log in a User without entering credentials. They are typically used for auto-login URLs or SSO-like flows where an application needs to sign in a User in a standard web context.
User login tokens are intended for one-time use: when a token is used during a login, it is soft deleted so it cannot be reused. Tokens are also invalid after their configured expiration time.
For usage examples see the Login By User Login Token section.
Model Definition
Relations
Traits
SoftDeletes
[Adm.] List
Get a list of all UserLoginTokens.
Definition
GET /api/administration/users/login-tokens
Example Request
Example Response
[Adm.] Show
Show a single UserLoginToken by uuid.
Definition
GET /api/administration/users/login-tokens/{uuid}
Example Request
Example Response
[Adm.] Create
Create a new UserLoginToken for a User.
Definition
POST /api/administration/users/login-tokens
Request Keys
expires_in *
integer
-
The amount of seconds until the login token expires (between 1 and 86400 (24 hours)).
Keys with * are required.
Example Request
Example Response
[Adm.] Create By Email
Create a new UserLoginToken for a User's email.
Definition
POST /api/administration/users/login-tokens/email
Request Keys
expires_in *
integer
-
The amount of seconds until the login token expires (between 1 and 86400 (24 hours)).
Keys with * are required.
Example Request
Example Response
[Adm.] Delete
Delete a UserLoginToken by uuid.
Definition
DELETE /api/administration/users/login-tokens/{uuid}
Example Request
Example Response
Last updated