@getalby/sdk
    Preparing search index...

    Type Alias GenerateAuthUrlOptions

    GenerateAuthUrlOptions: { authorizeUrl?: string } & (
        | { code_challenge?: string; code_challenge_method?: string }
        | { code_challenge_method: "S256"; state?: string }
        | {
            code_challenge: string;
            code_challenge_method?: "plain";
            state: string;
        }
    )

    Type declaration

    • OptionalauthorizeUrl?: string
    • { code_challenge?: string; code_challenge_method?: string }
    • { code_challenge_method: "S256"; state?: string }
      • code_challenge_method: "S256"

        Specifies the method you are using to make a request (S256 OR plain).

      • Optionalstate?: string

        A random string you provide to verify against CSRF attacks. The length of this string can be up to 500 characters.

    • { code_challenge: string; code_challenge_method?: "plain"; state: string }
      • code_challenge: string

        A PKCE parameter, a random secret for each request you make.

      • Optionalcode_challenge_method?: "plain"

        Specifies the method you are using to make a request (S256 OR plain).

      • state: string

        A random string you provide to verify against CSRF attacks. The length of this string can be up to 500 characters.