agentic-openapi-parser
    Preparing search index...

    Interface TokenRefresher

    interface TokenRefresher {
        refreshIfNeeded(
            state: OAuth2TokenState,
        ): Promise<OAuth2TokenState | undefined>;
    }

    Implemented by

    Index
    • Returns a refreshed token state if a refresh happened (the executor uses it immediately for the in-flight request), or undefined if no refresh was needed or possible. Must not throw — refresh failures are caught internally and reported via undefined so the caller falls back to the existing token.

      Parameters

      Returns Promise<OAuth2TokenState | undefined>