1.1.8 • Published 4 years ago

@quan-to/connect-web-embedded v1.1.8

Weekly downloads
45
License
MIT
Repository
github
Last release
4 years ago

Connect Web Embedded

This web client will help you as a partner to initialize Quanto Connect embedded in your application.

npm.io

Demo

https://connect-4k39dld76.vercel.app

Installing

Using npm:

$ npm i @quan-to/connect-web-embedded

Using yarn:

$ yarn add @quan-to/connect-web-embedded

Using cdn:

<script src="https://cdn.jsdelivr.net/npm/@quan-to/connect-web-embedded@1.1.7/dist/index.min.js"></script>

Creating an instance

How you can create a new instance of Connect.

new Connect(config)

const connect =  new Connect({    
    // Connect Session ID
    session: 'c889f8e9-8c58-456d-8f35-3840a292a574',
    
    // Connect Session environment
    env:'sandbox' 
});

How to use

const connect = new Connect({
    session: 'c889f8e9-8c58-456d-8f35-3840a292a574',
    env: 'sandbox'
});

connect.onLoad(() => {
    console.log('Do something')
})

connect.onSuccess(() => {
    console.log('Do something')
})

Callbacks

methodparamsreturndescription
onLoadfunctionvoidThis callback will be call when Connect is ready
onExitfunctionvoidThis callback will be call when the user leaves the application
onAuthSuccessfunctiondataThis callback will be call after user login
onAuthFailfunctionvoidThis callback will be call after user login fail
onSelectBankfunctiondataThis callback will be call after user select a bank
onAddAccountSuccessfunctiondataThis callback will be call after user add a new account
onGrantedPermissionfunctiondataThis callback will be call when user granted the permission and return the permission
onSuccessfunctionvoidThis callback will be call when user finished the flow with success

Run and Build

Run(watch):

$ yarn start

Build:

$ yarn build

About

Stack

Contributing

Link

Support

suporte@quan.to

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago