check
function (inside a check.ts
file) this function should return a boolean (true/false) that indicates if the session is still valid or not. This function is called before executing any authenticated action (API). If the function returns false, Intuned will attempt to re-authenticate the session using the saved credentials (for Credentials-based auth sessions) or mark the session as expired (for Recorder-based auth sessions).
check.ts
function is called. If the function returns false, Intuned will attempt to re-authenticate the session using the saved credentials. This is done by calling the refresh.ts
API using the saved credentials.refresh.ts
API fails, the session is marked as expired. Any further APIs that use this session will fail with 401 status code.check.ts
function is called. If the function returns false, the session is marked as expired.