Connect to the backend with Postman

With the HTTP verb set as POST, connect to localhost:8080/login. In the body of the request, have the following raw JSON:

1
2
3
4
{
    "username": "user@user.user",
    "password": "password"
}

image

You'll get back a header that contains a JWT token. For any requests that require authentication (currently all apart from logging in, logging out and registering), you will need to pass this token in so that the server knows it can trust you as it has already authenticated you.

Back to top