AniLink - v3.0.0
    Preparing search index...
    • Builds the auth material one operation replays with after a refresh.

      AniList authenticates with a bearer token, so the swap replaces the token with the fresh one. Headers on the operation's structured pre-refresh auth are preserved (mirroring MAL's buildRefreshedAuth, which keeps everything except the provider's own client-ID header): a caller who attached extra headers to the auth material, a proxy header or a tracing header, keeps them after the first refresh instead of losing them for the rest of the token's lifetime. There is no AniList-specific header to strip: the client ID and secret belong to the grant body, never to GraphQL request headers.

      Parameters

      • auth: RequestAuthInput | undefined

        The operation's current auth material, read live at swap time so auth changed through any other path survives the replay.

      • accessToken: string

        The fresh access token from the refresh grant.

      Returns RequestAuthInput

      The replacement RequestAuthInput.