High-level JavaScript API for performing authentication against RadioKit systems.
- Clone the repo
- Enter dir with the project
- Install NPM packages:
npm install
- Type
npm run build-browser
Browser-compatible version will be located in dist/browser/
.
Then you can type in the browser console e.g.
RadioKitToolkitAuth.Session.User.authenticateAsync('[email protected]', 'pass')
.then((session) => {
console.log('accessToken', session.getAccessToken());
console.log('user', session.getUser());
})
.error(reason) => {
throw new reason;
}
Marcin Lewandowski [email protected] Tomasz Pałys [email protected]
MIT