auth0-angularjs-sample icon indicating copy to clipboard operation
auth0-angularjs-sample copied to clipboard

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

Open markeaston opened this issue 9 years ago • 0 comments

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

markeaston avatar Sep 22 '16 21:09 markeaston