• Get the OAuth URL for AniList authentication.

    Parameters

    • clientId: string

      The OAuth client ID.

    • redirectUri: string

      The redirect URI after authentication.

    Returns string

    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`;
    }