Our API is located at https://cms-simple-login-3v27.vercel.app/
Here are the available endpoints:
-
Signup
- URL:
/api/auth/signup
- Method: POST
- Body:
{ "name": "Your Name", "email": "[email protected]", "password": "your_password", "role": "user" }
- URL:
-
Login
- URL:
/api/auth/login
- Method: POST
- Body:
{ "email": "[email protected]", "password": "your_password" }
- URL:
-
Logout
- URL:
/api/auth/logout
- Method: POST
- URL:
-
Refresh Token
- URL:
/api/auth/refresh-token
- Method: POST
- URL:
-
Get User Info
- URL:
/api/auth/getinfo
- Method: GET
- Headers:
Authorization: Bearer your_access_token_here
- URL:
- URL:
/api/protected
- Method: GET
- Headers:
Authorization: Bearer your_access_token_here