OptionalauthThe credential set to connect with, from an application's auth profiles. Omitted, the application's default profile is used.
OptionalautoWhether to close the authentication window automatically once the connection succeeds or the wait times out.
OptionalconnectionAn existing connection to re-authenticate instead of opening a new one.
OptionalgrantThe application's OAuth grant (from the app object). It no longer selects the
transport — every connect is a POST and the server decides — but it still
routes: Refold.connect sends a payload-bearing connect down the OAuth
path rather than the key-based one when this names
GrantType.ClientCredentials and no type was given. Pass type
explicitly and it is not needed.
OptionalpayloadThe key value pairs of auth data.
OptionalpreValues the application requires before it can be connected. Read by applications
on auth profiles and by connectors; other native applications take theirs as flat
keys in payload.
OptionalsignalSignal used to give up on an in-progress authentication — abort it and the
returned promise resolves false. Providers that sever the authentication
window's handle make an abandoned flow undetectable, so this is the only way
to end such a wait before the timeout.
The application slug.
OptionaltimeoutMaximum time in milliseconds to wait for authentication before giving up. Set to 0 to wait indefinitely. Defaults to 3 minutes.
OptionaltypeThe authentication type to use — an AuthType for native applications, or
one of a universal connector's own types (a key of
Application.auth_type_options). If not provided, it defaults to keybased
when a payload is given, otherwise oauth2.
OptionaluserCaller metadata to store against the connection.
Which credentials a connect uses, and what to store against the connection.