Bearer Auth

Authenticate a user with a bearer token in the header.

Request

Requires a bearer token in the header to successfully authenticate a user.

URL Method Description
/auth/bearer POST Returns the user object, if authenticated.

Response (Success)

{
  "exp": 1730707888,
  "iat": 1730707768,
  "username": "picnic"
}

Example

httpie example:

$ http -A "Bearer" -a "YOUR TOKEN" POST ":8080/auth/bearer"