Gets the current refresh timer
Retrieves the NodeJS Timeout object for the scheduled token refresh operation, which can be used to check if a refresh is already scheduled.
Current refresh timer or null if no refresh is scheduled
// Check if refresh is already scheduled before scheduling a new oneif (!getRefreshTimer()) { scheduleTokenRefresh(expiresIn);} Copy
// Check if refresh is already scheduled before scheduling a new oneif (!getRefreshTimer()) { scheduleTokenRefresh(expiresIn);}
export function getRefreshTimer(): NodeJS.Timeout | null { return refreshTimer;} Copy
export function getRefreshTimer(): NodeJS.Timeout | null { return refreshTimer;}
Gets the current refresh timer
Retrieves the NodeJS Timeout object for the scheduled token refresh operation, which can be used to check if a refresh is already scheduled.