Authentication

Authenticates user and sets cookie with issued auth token

post/auth/login

Request

  • Base URL
    https://127.0.0.1:4050
  • URL
    https://127.0.0.1:4050/auth/login
  • Auth
    none declared

Request body

passwordstring
usernamestring

Response

Authentication succeeded

expires_atstring
tokenstring

Example response

{
  "expires_at": "2019-06-06T11:04:43.910035Z",
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im15c3QiLCJleHAiOjE2MDEwNDA1NzB9.hnn9FosblyWtx1feSupx3MhZZdkbCuMTaiM6xl54VwQ"
}

Changes

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the success response with the status

    • breaking

      removed the success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status