Exchange an existing authentication token for a new one

The POST /api/auth/x-token API method is designed to exchange an existing authentication token for a new one, ensuring the continued secure access of a user to protected resources within the banking application. This method is essential for session management, particularly when handling token expiration or refreshing tokens in a seamless manner without requiring the user to reauthenticate.

Purpose:

  • Refresh an Authentication Token: Exchange an old or near-expiry authentication token for a new one.
  • Maintain Session Security: By continuously refreshing the token, this endpoint helps maintain active sessions while ensuring security.

Response:

  • Upon successful validation of the provided token, the API returns a new authentication token
  • If the current token is invalid or expired, the response will include an appropriate error message

Summary:

The POST /api/auth/x-token API method allows users to exchange an existing authentication token for a new one, ensuring their session remains active without reauthentication. This endpoint is crucial for maintaining secure and efficient access to the banking application, especially in scenarios where token expiration needs to be handled seamlessly. The method enhances security by requiring validation of the existing token before providing a refreshed one, ensuring uninterrupted and secure user sessions.

Language
Credentials
Bearer
JWT
Click Try It! to start a request and see the response here!