Skip to main content
PUT
/
securitymanagement
/
logout
Logout
curl --request PUT \
  --url https://{tenant}.fincode.software/api/v6/services/securitymanagement/logout \
  --header 'Content-Type: application/json' \
  --header 'platform: <platform>' \
  --header 'uuid: <uuid>' \
  --data '
{
  "refresh_token": "<string>"
}
'
Invalidate the current user session by revoking both the access token and the refresh token. After a successful logout, the user must perform a full login with email and password to regain access.

Request Headers

Content-Type
string
default:"application/json"
required
    Must be application/json
platform
string
default:"fincode"
required
    Platform identifier. Use fincode
uuid
string
default:"200"
required
    Unique request identifier. Use 200
x-auth-token
string
required
  Unique JWT token

Code Examples

const axios = require("axios");

async function logout(refreshToken) {
  try {
    const response = await axios.put(
      "[https://remitjunction.fincode.software/api/v6/services/securitymanagement/logout](https://remitjunction.fincode.software/api/v6/services/securitymanagement/logout)",
      {
        refresh_token: refreshToken,
      },
      {
        headers: {
          "Content-Type": "application/json",
          platform: "fincode",
          uuid: "200",
        },
      }
    );

    console.log("Logout successful:", response.data.message);
    return response.data;
  } catch (error) {
    console.error("Logout failed:", error.response?.data || error.message);
    throw error;
  }
}

// Example Usage
const currentRefreshToken = "eyJhbGciOiJ...";
logout(currentRefreshToken);

Headers

platform
string
default:fincode
required
uuid
string
default:200
required

Body

application/json
refresh_token
string

Response

200

Logged out successfully