Creates and returns access and refresh tokens for the given user.

Request

HTTP Request

POST /token

Authorization
None

Request Body
In the request body, supply user credentials.

Property NameRequiredTypeDescription
loginYesstringUser login.
passwordYesstringUser password.

Response

If successful, this method returns a pair of access and refresh tokens.

Property NameTypeDescription
accessTokenstringAccess JSON Web Token.
refreshTokenstringRefresh JSON Web Token.