Get the OAuth URL for AniList authentication.
The OAuth client ID.
The redirect URI after authentication.
The complete OAuth URL.
export function getOAuthUrl(clientId: string, redirectUri: string): string { return `https://anilist.co/api/v2/oauth/authorize?client_id=${clientId}&redirect_uri=${encodeURIComponent( redirectUri, )}&response_type=code`;} Copy
export function getOAuthUrl(clientId: string, redirectUri: string): string { return `https://anilist.co/api/v2/oauth/authorize?client_id=${clientId}&redirect_uri=${encodeURIComponent( redirectUri, )}&response_type=code`;}
Get the OAuth URL for AniList authentication.