Get: User Details

In this API, we retrieve the user details of the currently logged-in user. This is useful for verifying if authentication was successful and confirming which user account is active for the current session.

Endpoint:

/auth/api/user_details

Input:

  • No input parameters are required.
  • A valid Authorization token (Bearer token) must be included in the request header.

Output:

  • username – The name of the authenticated user
  • email – Email ID associated with the user account