To keep your session alive, use the ID and password issued to you to renew your token. If your token is expired, you are issued a new token.
Security
SSO_TOKEN
- Mock serverhttps://docs.fxinside.net/_mock/openapi/integral-api-reference/rest/v2/sso/token/renew
const resp = await fetch(
`https://docs.fxinside.net/_mock/openapi/integral-api-reference/rest/v2/sso/token/renew`,
{
method: 'GET',
headers: {
SSO_TOKEN: 'YOUR_API_KEY_HERE'
}
}
);
const data = await resp.text();
console.log(data);Object with updated token expiry time. If your token was expired, the new access token is in SSO_TOKEN of the response header.
List of JSON objects with additional information on the response, if any.
Response
{ "status": "OK", "valid": true, "expiryTime": 1603829916338, "apiVersion": "1.0", "expired": false }