Authentication
Verify Email
Verify user email address using the token sent via email
GET
This is a public endpoint that does not require authentication. The verification token in the URL is sufficient for verification.
Query Parameters
The verification token received in the email. This is a JWT token containing the user ID.
Response
A successful request returns HTTP 200 OK status, indicating that the email has been verified. The user’semailVerified status will be updated to true in the database.
Error Responses
Error details when the request fails
Common error cases:
- 400 Bad Request: Missing verification token
- 401 Unauthorized: Invalid or expired token
- 404 Not Found: User not found
