@bates-solutions/squareup API Reference - v3.2.0
    Preparing search index...

    Interface BuildAuthorizeUrlOptions

    Options for buildAuthorizeUrl

    interface BuildAuthorizeUrlOptions {
        clientId: string;
        environment?: SquareEnvironment;
        locale?: string;
        redirectUri?: string;
        scopes: OAuthScope[];
        session?: boolean;
        state: string;
    }
    Index
    clientId: string

    Application ID (sandbox IDs start with sandbox-)

    environment?: SquareEnvironment

    Selects the authorize host: connect.squareup.com (production) or connect.squareupsandbox.com (sandbox).

    'sandbox'
    
    locale?: string

    Authorization page language, e.g. en-US, en-CA, es-US, fr-CA, ja-JP

    redirectUri?: string

    Must match the redirect URL configured for the application, if set

    scopes: OAuthScope[]

    Permissions to request from the seller. Must not be empty.

    session?: boolean

    Whether an existing Square Dashboard session may be reused. Square requires false for production apps so the seller explicitly picks the account. Ignored by Square in sandbox.

    false
    
    state: string

    Unguessable CSRF token, returned unchanged on the redirect. Verify it in your callback before exchanging the code. You can also use it to carry which tenant started the flow.