Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
super();
const params = {
autoclose: true,
oidcConformant: true,
auth: {
audience: `${Config.API_BASE_URL}`,
params: {
scope: 'openid profile email'
},
responseType: 'token'
}
};
// Instantiate the Auth0Lock library
const lock = new Auth0Lock(
Config.AUTH0_CLIENT_ID,
Config.AUTH0_DOMAIN,
params
);
this.lock = lock;
// Listen for the authenticated event on the Auth0 lock library and call the
// onAuthenticated method
this.lock.on('authenticated', this.onAuthentication)
}