Validate Session
Once you have successfully authenticated, session tokens are only valid for 24 hours.
If your token has expired, you must re-validate it to receive a new token.
The new token is valid for another 24 hours. You may re-validate your session token up to 7 days after expiration, even if the token has expired. We recommend re-validating your session token every 12 hours.
Validate Token
API Reference: Login API
To validate your token, you must make a GET request to the endpoint referenced above.
- cURL
- Response
curl -i https://userapi-demo.s2f.projectx.com/Session/validate -H "Authorization: Bearer [[TOKEN]]"
{
"result": 0,
"token": "NEW TOKEN"
}
Final Step
Replace your existing JSON Web Tokens and continue making HTTP calls.