# Authentication

WARNING

This api is no longer avaible after blessing skin 5.2.0

# Log in

Log in to the skin site as a JWT. Currently, login by role name is not supported, this means, only email addresses can be submitted.

The returned token will be used for subsequent requests. When using, you will need to put the token in the HTTP header: Authorization: Bearer <token>.

POST /api/auth/login

# Parameters

Name Type Description
email string User Email
password string password

# Response

HTTP Status: 200

{
  "token": "<JWT token>"
}

# Sign out

POST /api/auth/logout

# No Parameters.

# Response

Status: 204

# Refresh token

When refreshing the token, you need to send the original token in the HTTP header.

POST /api/auth/refresh

# No Parameters.

# Response

Status: 200

{
  "token": "<JWT token>"
}