auth0 / angular-lock

MIT License
18 stars 15 forks source link

Incompatible with Lock 10.9.0 (Auth0.js v8) #18

Closed ronalders closed 7 years ago

ronalders commented 7 years ago

Since Lock 10.9.0 Auth0 v8 is used. And angular-lock is still depending on auth0.js v7 in the interceptHash function. The init of Auth0(credentials) no longer exists within Auth0.js v8.

lock.interceptHash = function() {
        $rootScope.$on('$locationChangeStart', function(event, location) {

          if (/id_token=/.test(location) || /error=/.test(location)) {
            var auth0 = new Auth0(credentials);
chenkie commented 7 years ago

You can use 2.0.0-beta.0 with Lock 10.9 :) https://github.com/auth0/angular-lock/tree/v2

I'll update the main readme to reflect this.