post

/oauth2/login/token

Authenticates the user by the username/email and password and returns a JWT. Exchanging the code to a JWT via the OAuth 2.0/Generate User JWT method is not needed.

Request Parameters

2 Query Parameters

Request Body

Schema
object

User details.

password
string

Password.

1 validation + required
username
string

Username/email.

1 validation + required

Responses

OK

1 Example
Schema
object
access_token
string

User JWT.

required
expire_in
integer

JWT expiration period in seconds. You can configure it in Publisher Account > your Login project > General settings > JWT expiration.

refresh_token
string

Refresh token for updating the access_token.

token_type
string

JWT type. Can be ‘bearer’.

required

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
$$.env
No $$.env variables are being used in this request.