0.3.1 • Published 1 year ago
@goodloans/connect v0.3.1
@goodloans/connect
This is a package for integrating the Goodloans loans platform into your UI.
Installation
npm install @goodloans/connect
or
yarn add @goodloans/connect
Getting Started
@goodloans/connect now allows you to own how the webapp is opened (whether this be from a button click or another event).
Once you have retrieved the authentication token from the Goodloans API, you'll need to launch the Goodloans webapp with the token.
import { Goodloans } from '@goodloans/connect';
const goodloans = new Goodloans();
async function main() {
const { token } = await authorize();
goodloans.launch(token);
}
main();
Once this is complete you should be ready to go!