The client ID of your AniList API application.
The client secret of your AniList API application.
The authorization code from the redirect URI code query parameter.
OptionalredirectUri: string
The redirect URI registered for your AniList application. This parameter is optional but must match the URI used in buildAuthorizationUrl when AniList requires it. An empty string is treated as omitted.
Optionalsignal: AbortSignal
Optional AbortSignal to cancel the token exchange while it is in flight.
Optionaloptions: RequestOptions
Optional transport settings for the token call; timeout defaults to the shared 10-second token-request timeout and retry defaults to disabled because the authorization code is single-use. Pass an explicit retry policy to opt back in.
A promise that resolves to the token response containing access_token.
Exchanges an authorization code for an access token using the authorization-code grant.