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 Generate 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. Default value is 3600 seconds.

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.