Skip to main content

Login user and receive JWT token.

POST 

/api/auth/login

This endpoint allows users to login to sero server. The TTL for token is set by the owner of the server by JWT_TTL env.

Request

Body

required
    login stringrequired

    Possible values: >= 5 characters and <= 40 characters

    The username used for authentication. It must adhere to the following criteria:

    • Minimum length of 5 characters.
    • Maximum length of 40 characters.
    password stringrequired

    Possible values: >= 12 characters and <= 40 characters

    The password used for authentication. It must meet the following requirements:

    • Minimum length of 12 characters.
    • Maximum length of 40 characters.

Responses

User was successfully authenticated.

Schema
    token stringrequired

    Token in JWT format

Loading...