initiateConnect
See Getting Started for a full overview of the Connect Widget flow.
connectClient.initiateConnect(params) ⇒ Promise.<GrantResponseDto>
Promise.<GrantResponseDto>
Initiates a Connect widget instance
Kind: instance method of ConnectClient
Returns: Promise.<GrantResponseDto>
- Grant response from the authentication service
Throws:
ArmorySdkException
If there's an error initiating the connection
params
object
Parameters for initiating the Connect flow
params.label
string
Label for the access token
params.actions
Array.<string>
List of permitted actions
params.providers
Array.<string>
List of providers to use with this Connect instance
[params.userId]
string
Optional internal app user identifier, for reference only
params.finish.uri
string
Finish parameters for the connection
[params.finish.nonce]
string
Finish nonce for verifying at the end of the flow
Example
Last updated