auth0-angularjs-sample
auth0-angularjs-sample copied to clipboard
lock.on('authenticated') does not fire - solution
Numerous people using auth0 lock have had this issue where the authenticated event does not fire. See https://auth0.com/forum/t/authenticated-event-not-triggering/3554. It is fixed by adding the following to the options property when calling lockProvider.init() ... `var options = { //Must have these two settings for auth0 lock to work properly! auth: { redirect: false, responseType: 'token' } };
lockProvider.init({
clientID: APP_CONFIG.auth0ClientId,
domain: APP_CONFIG.auth0Domain,
options: options
}); `