Frodo Library - v4.8.5
    Preparing search index...

    Type Alias TokenRefreshHandler

    TokenRefreshHandler: () => Promise<void>

    On-demand, de-duplicated "make my cached token(s) fresh again" callback for non-browser auth modes, invoked by api/BaseApi.ts's request interceptors when a cached token is found to be stale at actual send time — not just at the one point in time getTokens() originally checked it. Set by AuthenticateOps.ts right after a successful login, alongside scheduleAutoRefresh's timer (this is the same underlying mechanism, just invocable on demand instead of only when the timer fires). Browser login mode deliberately leaves this unset — cloud's primary token has no refresh token, so there is no silent way to redo an interactive login; going stale must surface a clear re-authentication error instead.

    Type Declaration

      • (): Promise<void>
      • Returns Promise<void>