Appearance
Authentication
Login
http
POST /api/auth/loginAuthenticate user and get JWT token.
Request Body
json
{
"email": "string",
"password": "string"
}Register
http
POST /api/auth/registerRegister new user account.
Request Body
json
{
"name": "string",
"email": "string",
"password": "string"
}Logout
http
POST /api/auth/logoutLogout and invalidate token. Requires authentication.
Refresh Token
http
POST /api/auth/refreshRefresh JWT token. Requires authentication.
Get User
http
GET /api/auth/userGet authenticated user details. Requires authentication.