ConnectClient
The ConnectClient is the easiest way to create a new Connect widget instance and make requests against a user's connection.
(static) Init
ConnectClient.init(config) ⇒ Promise.<ConnectClient>
Promise.<ConnectClient>
Initializes a new ConnectClient instance with the provided configuration.
Kind: static method of ConnectClient
Returns: Promise.<ConnectClient>
- A new instance of ConnectClient
Throws:
ArmorySdkException
If there's an error initializing the client
config
The configuration object for the ConnectClient
config.host
The host URL for the Connect service
config.clientId
The client ID for the Connect service
config.signer
The signer for the Connect service
Example
(static) verificationHash
ConnectClient.verificationHash(params) ⇒ string
string
Generates a hash for connection verification.
Kind: static method of ConnectClient
Returns: string
- Base64URL encoded hash string
params
Parameters for generating the verification hash
params.nonce
Client's nonce value
params.finish
AS's nonce value
params.interactRef
Interaction reference from AS
params.host
Host URL for the grant endpoint
Example
Last updated