Swaps the fresh access token onto the operation instances. Called between the refresh and the replay so the replayed request carries the new auth material. The callback must write through the wiring's live auth cell (not a construction-time snapshot) so both already- constructed operations and instances built later see the refreshed token.
The application client ID sent on the refresh grant.
The AniList application client secret, required by AniList's refresh grant.
OptionaldiagnosticsHow a throwing onTokenRefresh callback with no observer is reported; defaults to "warn".
OptionalonOptional observer for onTokenRefresh failures, mirroring the transport hooks.
OptionalonOptional callback invoked once after every successful refresh.
OptionalonOptional callback invoked once when a refresh grant fails.
The stored refresh token exchanged for new access tokens.
The fields the AniList wiring passes to buildAniListTokenRefresher: the shared refresh-option shape with AniList's one narrowing, that the refresh grant requires the client secret, unlike MAL's optional one.
See
buildAniListTokenRefresher