Application ID (sandbox IDs start with sandbox-)
OptionalenvironmentSelects the authorize host: connect.squareup.com (production) or
connect.squareupsandbox.com (sandbox).
OptionallocaleAuthorization page language, e.g. en-US, en-CA, es-US, fr-CA, ja-JP
OptionalredirectMust match the redirect URL configured for the application, if set
Permissions to request from the seller. Must not be empty.
OptionalsessionWhether 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.
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.
Options for buildAuthorizeUrl