@upbond/sdk - v0.0.3
    Preparing search index...

    Function refreshGrant

    • Exchange a refresh token for a fresh TokenSet (widget host steady state). Public clients send no secret; the rotated refresh_token (when the issuer rotates) replaces the old one in the returned set.

      Parameters

      • config: AuthConfig
      • refreshToken: string
      • fetchFn: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        } = fetch
          • (input: URL | RequestInfo, init?: RequestInit): Promise<Response>
          • Parameters

            • input: URL | RequestInfo
            • Optionalinit: RequestInit

            Returns Promise<Response>

          • (input: string | URL | Request, init?: RequestInit): Promise<Response>
          • Parameters

            • input: string | URL | Request
            • Optionalinit: RequestInit

            Returns Promise<Response>

          • (input: string | URL | Request, init?: RequestInit): Promise<Response>
          • Parameters

            • input: string | URL | Request
            • Optionalinit: RequestInit

            Returns Promise<Response>

      • nowEpochSeconds: () => number = ...

      Returns Promise<TokenSet>

      Most integrations should use createUpbond instead.