Skip to main content

Version: v1

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

MethodEndpointDescription
POST/auth/registerRegister a new user
POST/auth/email/verifyVerify user email with token
POST/auth/loginAuthenticate user and return access token
GET/auth/logoutLogout 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.