Register and Login

Registering a user

POST http://127.0.0.1/users/register
{
    "username": "Player",
    "email": "player@test.com",
    "password": "12345"
}

Login

POST http://127.0.0.1/auth
{
    "username": "Player",
    "password": "12345"
}

Refresh Login

Refresh login can be done to extend the expiration of a token without providing your password again. You will need the access token and the refresh token of a previous login. Any access level can do this.

POST http://127.0.0.1/auth/refresh
{
    "refresh_token": "OGhueE8zRlcySlZRUHZkbG1U"
}

Header authorization access_token

Validate Token

Can be used to just validate if your access token is still valid. Any access level can do this.

Header: authorization access_token

Last updated