When a new user registers, the auth service generates a UUID verification code, persists it against the user record, and dispatches a verification email via the configured SMTP provider. Until the account is verified, any call toDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Gianluca-X/DigitalMoney/llms.txt
Use this file to discover all available pages before exploring further.
POST /auth/login returns 403 Forbidden. This page documents the GET /auth/verify endpoint and the end-to-end verification flow.
Endpoint
Query Parameters
The UUID verification code received in the registration email. The service trims whitespace and strips surrounding quotes before lookup. Codes are single-use — once verified, the code is cleared from the database and cannot be reused.
Responses
200 OK
emailVerified flag on the user record is set to true and the stored verification code is nullified. The account is now active and the user may log in.
400 Bad Request
Example
Success response
Error response
Verification Flow
Register an account
Call
POST /users/register (or POST /auth/register directly) with a valid email and password. The auth service immediately sends a verification email to the supplied address.Check your inbox
Open the email from Digital Money House. It contains a verification link and/or a raw UUID code in the format
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.Submit the verification code
Call
GET /auth/verify?code=your_code through the Gateway, substituting the exact UUID from the email.Confirm activation
A
200 OK response with the body ✅ Email verified successfully confirms the account is now active. The verification code is deleted from the database at this point.Error Codes
| HTTP Status | Exception | Description |
|---|---|---|
400 Bad Request | InvalidVerificationCodeException | The supplied code does not match any pending verification record. The code may have already been used or may have been entered incorrectly. |
Email Service Configuration
The development environment uses Gmail SMTP to deliver verification emails. Ensure the following environment variables are configured in the auth service before running locally:
MAIL_USERNAME— the Gmail address used as the sender.MAIL_PASSWORD— a Gmail App Password (not your account password).
application.properties accordingly.