---
title: "Returns a user token if the given email and password are correct. If the user has multi-factor authentication enabled, this endpoints sends the OTP (one-time password) and returns `{ mfaEnabled: true, mfaMethod: _User's_MFA_Method_ }`. Another request to must be made to /v1/login/mfa/token with the correct OTP."
method: POST
path: "/v1/login/token"
tags: ["Login"]
---

# Returns a user token if the given email and password are correct. If the user has multi-factor authentication enabled, this endpoints sends the OTP (one-time password) and returns \`{ mfaEnabled: true, mfaMethod: _User's_MFA_Method_ }\`. Another request to must be made to /v1/login/mfa/token with the correct OTP.

`POST /v1/login/token`

## Request body

- TokenRequestModel
  - `email` string, email, required — User email
  - `password` string, required — User password
  - `remember` boolean, required — If true, the generated token will be valid for 30 days, otherwise it'll be valid for 1 day

## Response `200`

OK

---

[API](https://skmtc.dev/infoset/apis/infoset-rest-api.md) · [All operations](https://skmtc.dev/infoset/apis/infoset-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infoset/infoset-rest-api/revisions/f5bc39a1ac15/schema)
