Compatible with browser, app integration.
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,wallet', // Grant Scope
state: 'test',
usePopup: true // Popup a window instead of jump to
});
fSLAuthorization.signIn().then((code) => {
if (code) {
// Implement your code here
}
});