Register
Authentication
Register
Create a new user account with email and password
POST
Register
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/GoodnessFx/GatePass/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Create a new user account in the GatePass system. This endpoint validates user input, hashes the password securely, and returns a JWT access token along with user details.Request Body
User’s email address. Must be a valid email format.
User’s password. Must meet the following requirements:
- Minimum 8 characters long
- Contains at least one uppercase letter
- Contains at least one lowercase letter
- Contains at least one number
User’s full name. Cannot be empty.
Ethereum wallet address. Must be a valid Ethereum address format if provided.
User role. Can be
USER or ORGANIZER. Defaults to USER if not specified or if an invalid value is provided.Response
Success message confirming user registration.
JWT access token valid for 15 minutes. Use this token in the
Authorization header for authenticated requests.User information object.
Authentication
A refresh token is automatically set as an HttpOnly cookie (refreshToken) with the following properties:
- HttpOnly: true (cannot be accessed via JavaScript)
- Secure: true in production
- SameSite: strict
- Max-Age: 7 days
Example Request
cURL
Example Response
Error Responses
Validation errors for email, password, or name fields.
User with the provided email or wallet address already exists.
Password Validation Rules
- Minimum Length: 8 characters
- Uppercase: At least one uppercase letter (A-Z)
- Lowercase: At least one lowercase letter (a-z)
- Number: At least one digit (0-9)
- Hashing: Passwords are hashed using bcrypt with 12 rounds
Notes
- Email addresses are normalized (lowercased) before storage
- Duplicate emails or wallet addresses are not allowed
- The access token expires in 15 minutes
- The refresh token (stored in cookie) expires in 7 days