Sets the refresh timer
Updates the stored reference to the token refresh timer, allowing for centralized management of the refresh scheduling system.
Timer to set, or null to indicate no active timer
// Set the refresh timer after schedulingconst timer = setTimeout(refreshAccessToken, 3300000);setRefreshTimer(timer); Copy
// Set the refresh timer after schedulingconst timer = setTimeout(refreshAccessToken, 3300000);setRefreshTimer(timer);
export function setRefreshTimer(timer: NodeJS.Timeout | null): void { refreshTimer = timer;} Copy
export function setRefreshTimer(timer: NodeJS.Timeout | null): void { refreshTimer = timer;}
Sets the refresh timer
Updates the stored reference to the token refresh timer, allowing for centralized management of the refresh scheduling system.