Sign up with email
Auth
Sign up with email
Register a new user account with an email address, password, and display name.
POST
Sign up with email
Creates a new user account using an email and password. The user is registered in Firebase Authentication and then stored in MongoDB. Returns a JWT token on success.
This endpoint does not require authentication.
Request body
The user’s email address. Must be unique across all accounts — including those registered via Google.
The password for the new account. Passed to Firebase Authentication; Courser does not store it directly.
The user’s display name. Stored on the MongoDB user record.
Response
200 — Success
A signed JWT valid for 1000 days. Pass this value in the
x-access'courser-auth-token header on authenticated requests.Always
"Login successful".409 — Email already in use
"Email already in use"500 — Error creating account
Returned when Firebase Authentication or the MongoDB save operation fails."Error creating account"Example
200
409
500