Authenticates the user by the username/email and password and returns a JWT. Exchanging the code to a JWT via the Generate JWT call is not needed.
client_id required | integer Your application ID. Get it after creating an OAuth 2.0 client. |
scope | string Scope is a mechanism in OAuth 2.0 to limit an application’s access to a user’s account. Can be:
If you process your own values of the |
OK
Bad Request
Unauthorized
Not Found
Unprocessable Entity
Too Many Requests
{- "password": "password123",
- "username": "John"
}
{- "access_token": "2YotnFZFEjr1zCsicMWpAA",
- "expires_in": 3600,
- "refresh_token": "tGzv3JOkF0XG5Qx2TlKWIA",
- "token_type": "bearer"
}