FSL ID SDK

JS SDK

Compatible with browser, app integration.

How to install

Use npm to install the JS SDK, check https://www.npmjs.com/package/fsl-authorization for details

Getting Started

Demo code to integrate with the JS SDK

import { FSLAuthorization } from 'fsl-authorization';

const fslAuthorization = window.FSLAuthorization.init({
  responseType: 'code', // 'code' or 'token'
  appKey: 'Your APP KEY',
  redirectUri: 'Your Redirect URL', // https://xxx.xxx.com
  scope: 'basic%20wallet', // Grant Scope
  state: 'test',
  usePopup: true // Popup a window instead of jump to
});

fSLAuthorization.signIn().then((code) => {
  if (code) {
    // Implement your code here
  }
});

Last updated