Authentication Controller

The AuthenticationController handles user authentication and registration. It is located at:

backend_dotnet\Controllers\AuthenticationController.cs

It handles user authentication and registration, providing endpoints for user login, registration, email verification, and retrieving the nonce for a given wallet address. It is located at:

Routes

Login:

POST /Authentication/Login

Authenticates the user with their credentials.

Request JSON Object:
  • request (obj) – The user login request object.

Response JSON Object:
  • response (obj) – The service response object.

Register:

POST /Authentication/Register

Registers a new user with the provided information.

Request JSON Object:
  • request (obj) – The user registration request object.

Response JSON Object:
  • response (obj) – The service response object.

Verify Email:

GET /Authentication/verify-email

Verifies the user’s email address with a provided token.

Query Parameters:
  • email (string) – The user’s email address.

  • token (string) – The email verification token.

Response JSON Object:
  • response (obj) – The service response object.

Get Nonce:

GET /Authentication/GetNonce/{address}

Retrieves the nonce for a given wallet address.

Parameters:
  • address (string) – The wallet address of the user.

Response JSON Object:
  • response (obj) – The service response object.