Auth API Overview
Handle user authentication, including registration, email verification, login, logout, and token management. All endpoints follow secure practices and typically use access and refresh tokens.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /auth/register | Register a new user |
| POST | /auth/email/verify | Verify user email with token |
| POST | /auth/login | Authenticate user and return access token |
| GET | /auth/logout | Logout user and invalidate session |
| GET | /auth/refresh/{storeId} | Refresh access token using refresh token |
Common Use Cases
- Register a new user and send a verification email.
- Authenticate a user and issue access/refresh tokens.
- Securely log out a user from current session.
- Refresh access tokens without requiring re-login.