Skip to main content

Admin login

POST 

/auth/admin/login/

Authenticates an administrative user by validating the provided username and password. Upon successful authentication, a pair of JSON Web Tokens (JWT) — access and refresh — are issued, along with basic user details. These tokens are required for accessing protected endpoints within the system.

Request

Body

    username stringrequired

    The email address of the user.

    password passwordrequired

    The user's password.

Responses

Returns access and refresh tokens along with user profile data.

Schema
    refresh string

    JWT refresh token

    access string

    JWT access token

    user object
    id integer
    username string
    email stringnullable
    userType string

    Possible values: [ADMIN, USER]

    address stringnullable
    birthDate datenullable
    familyName stringnullable
    givenName stringnullable
    isOver18 boolean
    isOver21 boolean
    isOver65 boolean
    phoneNumber stringnullable
Loading...