auth0-samples / auth0-angularjs-sample

These samples are made up of steps to add Auth0 to an Angular JS app
28 stars 111 forks source link

lock.on('authenticated') does not fire - solution #19

Open markeaston opened 7 years ago

markeaston commented 7 years ago

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
            }); `