---
title: "Logs the user in"
method: POST
path: "/login"
tags: ["User"]
---

# Logs the user in

`POST /login`

## Request body

- LoginRequest
  - `username` string — The name of the user.
  - `password` string — The password of the user.

## Response `200`

Login successful

- AccessTokenResponse
  - `token_type` string
  - `access_token` string
  - `expires_on` string
  - `refresh_token` string

## Other responses

- `default` — Error * 401 - Invalid Password

---

[API](https://skmtc.net/azure/apis/flightpredictionservice.md) · [All operations](https://skmtc.net/azure/apis/flightpredictionservice/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/flightpredictionservice/versions/967f6db1431c/schema)
