auth0-angular
Advanced tools
Comparing version 4.0.3 to 4.0.4
/** | ||
* Angular SDK to use with Auth0 | ||
* @version v4.0.2 - 2015-04-28 | ||
* @version v4.0.4 - 2015-04-28 | ||
* @link https://auth0.com | ||
@@ -352,3 +352,3 @@ * @author Martin Gontovnikas | ||
var successFn = !successCallback ? null : function (profile, idToken, accessToken, state, refreshToken) { | ||
if (!angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
if (!idToken && !angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
successCallback(); | ||
@@ -355,0 +355,0 @@ } else { |
@@ -1,1 +0,1 @@ | ||
!function(){angular.module("auth0",["auth0.service","auth0.utils"]).run(["auth",function(a){a.hookEvents()}]),angular.module("auth0.utils",[]).provider("authUtils",function(){var a={capitalize:function(a){return a?a.charAt(0).toUpperCase()+a.substring(1).toLowerCase():null},fnName:function(a){var b=a.toString();return b=b.substr("function ".length),b=b.substr(0,b.indexOf("(")),b?b.trim():b}};angular.extend(this,a),this.$get=["$rootScope","$q",function(b,c){var d={};return angular.extend(d,a),d.safeApply=function(a){var c=b.$root.$$phase;"$apply"===c||"$digest"===c?a&&"function"==typeof a&&a():b.$apply(a)},d.callbackify=function(a,b,c,e){return angular.isFunction(a)?function(f){f=Array.prototype.slice.call(arguments);var g=function(a,d,e){return a?void(c&&c(a)):(e=Array.prototype.slice.call(arguments,1),void(b&&b.apply(null,e)))};(b||c)&&f.push(d.applied(g)),a.apply(e,f)}:void 0},d.promisify=function(a,b){return angular.isFunction(a)?function(e){e=Array.prototype.slice.call(arguments);var f=c.defer(),g=function(a,b,c){return a?void f.reject(a):(c=Array.prototype.slice.call(arguments,1),void f.resolve(c.length>1?c:b))};return e.push(d.applied(g)),a.apply(b,e),f.promise.spread=f.promise.spread||function(a,b){return f.promise.then(function(b){return Array.isArray(b)?a.apply(null,b):a(b)},b)},f.promise}:void 0},d.applied=function(a){return function(b,c){b=b,c=c;var e=arguments;d.safeApply(function(){a.apply(null,e)})}},d}]}),angular.module("auth0.service",["auth0.utils"]).provider("auth",["authUtilsProvider",function(a){function b(a,b){b=b||f.lib;var c=g[b].library();return c[g[b][a]]}function c(a,b){return b=b||f.lib,g[b][a]}function d(b){if(b)return{lib:a.fnName(b),constructor:b};if(null!=window.Auth0Lock)return{lib:"Auth0Lock",constructor:window.Auth0Lock};if(null!=window.Auth0)return{lib:"Auth0",constructor:window.Auth0};if(null!=Auth0Widget)throw new Error("Auth0Widget is not supported with this version of auth0-angularanymore. Please try with an older one");throw new Error("Cannott initialize Auth0Angular. Auth0Lock or Auth0 must be available")}var e={callbackOnLocationHash:!0},f=this,g={Auth0:{signin:"login",signup:"signup",reset:"changePassword",library:function(){return f.auth0js},parseOptions:function(a){var b=angular.copy(a);return b.authParams&&(angular.extend(b,b.authParams),delete b.authParams),b}},Auth0Lock:{signin:"show",signup:"showSignup",reset:"showReset",library:function(){return f.auth0lib},parseOptions:function(a){return angular.copy(a)}}};this.init=function(a,b){if(!a)throw new Error("You must set options when calling init");this.loginUrl=a.loginUrl,this.loginState=a.loginState,this.clientID=a.clientID||a.clientId;var c=a.domain;this.sso=a.sso;var f=d(b);this.lib=f.lib,"Auth0Lock"===f.lib?(this.auth0lib=new f.constructor(this.clientID,c,angular.extend(e,a)),this.auth0js=this.auth0lib.getClient(),this.isLock=!0):(this.auth0lib=new f.constructor(angular.extend(e,a)),this.auth0js=this.auth0lib,this.isLock=!1),this.initialized=!0},this.eventHandlers={},this.on=function(a,b){this.eventHandlers[a]||(this.eventHandlers[a]=[]),this.eventHandlers[a].push(b)};var h=["loginSuccess","loginFailure","logout","forbidden","authenticated"];angular.forEach(h,function(b){f["add"+a.capitalize(b)+"Handler"]=function(a){f.on(b,a)}}),this.$get=["$rootScope","$q","$injector","$window","$location","authUtils",function(a,d,e,h,i,j){function k(){f.loginUrl?i.path(f.loginUrl):f.loginState?e.get("$state").go(f.loginState):n("forbidden")}var l={isAuthenticated:!1},m=function(a){return f.eventHandlers[a]},n=function(b,c){a.$broadcast("auth0."+b,c),angular.forEach(m(b)||[],function(a){e.invoke(a,l,c)})},o=function(a,b,c,d,e,f){var g=l.getProfile(a),h={idToken:a,accessToken:b,state:c,refreshToken:d,profile:e,isAuthenticated:!0};return angular.extend(l,h),n(f?"authenticated":"loginSuccess",angular.extend({profilePromise:g},h)),g};a.$on("$locationChangeStart",function(){if(f.initialized){var a=f.auth0lib.parseHash(h.location.hash);if(!l.isAuthenticated){if(a&&a.id_token)return void o(a.id_token,a.access_token,a.state,a.refresh_token);f.sso&&f.auth0js.getSSOData(j.applied(function(a,b){b.sso&&l.signin({popup:!1,callbackOnLocationHash:!0,connection:b.lastUsedConnection.name},null,null,"Auth0")}))}}}),a.$on("auth0.forbiddenRequest",function(){k()}),f.loginUrl&&a.$on("$routeChangeStart",function(a,b){f.initialized&&b.$$route&&b.$$route.requiresLogin&&(l.isAuthenticated||l.refreshTokenPromise||i.path(f.loginUrl))}),f.loginState&&a.$on("$stateChangeStart",function(a,b){f.initialized&&b.data&&b.data.requiresLogin&&(l.isAuthenticated||l.refreshTokenPromise||(a.preventDefault(),e.get("$state").go(f.loginState)))}),l.config=f;var p=function(a,b){var c=m("loginSuccess");if(!(b||a.username||a.email||c&&0!==c.length))throw new Error("You must define a loginSuccess handler if not using popup mode or not doing ro call because that means you are doing a redirect")};return l.hookEvents=function(){},l.init=angular.bind(f,f.init),l.getToken=function(a){a=a||{scope:"openid"},a.id_token||a.refresh_token||(a.id_token=l.idToken);var b=j.promisify(f.auth0js.getDelegationToken,f.auth0js);return b(a)},l.refreshIdToken=function(a){var b=j.promisify(f.auth0js.refreshToken,f.auth0js);return l.refreshTokenPromise=b(a||l.refreshToken).then(function(a){return a.id_token})["finally"](function(){l.refreshTokenPromise=null}),l.refreshTokenPromise},l.renewIdToken=function(a){var b=j.promisify(f.auth0js.renewIdToken,f.auth0js);return b(a||l.idToken).then(function(a){return a.id_token})},l.signin=function(a,d,e,h){a=a||{},p(a,d,e),a=c("parseOptions",h)(a);var i=b("signin",h),k=d?function(b,c,e,f,g){angular.isUndefined(a.loginAfterSignup)||a.loginAfterSignup?o(c,e,f,g,b).then(function(a){d&&d(a,c,e,f,g)}):d()}:null,l=e?function(a){n("loginFailure",{error:a}),e&&e(a)}:null,m=j.callbackify(i,k,l,g[h||f.lib].library());m(a)},l.signup=function(a,d,e){a=a||{},p(a,d,e),a=c("parseOptions")(a);var g=d?function(b,c,e,f,g){angular.isUndefined(a.auto_login)||a.auto_login?o(c,e,f,g,b).then(function(a){d&&d(a,c,e,f,g)}):d()}:null,h=e?function(a){n("loginFailure",{error:a}),e&&e(a)}:null,i=f.auth0lib,k=j.callbackify(b("signup"),g,h,i);k(a)},l.reset=function(a,d,e){a=a||{},a=c("parseOptions")(a);var g=f.auth0lib,h=j.callbackify(b("reset"),d,e,g);h(a)},l.signout=function(){l.isAuthenticated=!1,l.profile=null,l.profilePromise=null,l.idToken=null,l.state=null,l.accessToken=null,l.tokenPayload=null,n("logout")},l.authenticate=function(a,b,c,d,e){return o(b,c,d,e,a,!0)},l.getProfile=function(a){var b=j.promisify(f.auth0lib.getProfile,f.auth0lib);return l.profilePromise=b(a||l.idToken),l.profilePromise.then(function(a){return l.profile=a,a})},l}]}])}(); | ||
!function(){angular.module("auth0",["auth0.service","auth0.utils"]).run(["auth",function(a){a.hookEvents()}]),angular.module("auth0.utils",[]).provider("authUtils",function(){var a={capitalize:function(a){return a?a.charAt(0).toUpperCase()+a.substring(1).toLowerCase():null},fnName:function(a){var b=a.toString();return b=b.substr("function ".length),b=b.substr(0,b.indexOf("(")),b?b.trim():b}};angular.extend(this,a),this.$get=["$rootScope","$q",function(b,c){var d={};return angular.extend(d,a),d.safeApply=function(a){var c=b.$root.$$phase;"$apply"===c||"$digest"===c?a&&"function"==typeof a&&a():b.$apply(a)},d.callbackify=function(a,b,c,e){return angular.isFunction(a)?function(f){f=Array.prototype.slice.call(arguments);var g=function(a,d,e){return a?void(c&&c(a)):(e=Array.prototype.slice.call(arguments,1),void(b&&b.apply(null,e)))};(b||c)&&f.push(d.applied(g)),a.apply(e,f)}:void 0},d.promisify=function(a,b){return angular.isFunction(a)?function(e){e=Array.prototype.slice.call(arguments);var f=c.defer(),g=function(a,b,c){return a?void f.reject(a):(c=Array.prototype.slice.call(arguments,1),void f.resolve(c.length>1?c:b))};return e.push(d.applied(g)),a.apply(b,e),f.promise.spread=f.promise.spread||function(a,b){return f.promise.then(function(b){return Array.isArray(b)?a.apply(null,b):a(b)},b)},f.promise}:void 0},d.applied=function(a){return function(b,c){b=b,c=c;var e=arguments;d.safeApply(function(){a.apply(null,e)})}},d}]}),angular.module("auth0.service",["auth0.utils"]).provider("auth",["authUtilsProvider",function(a){function b(a,b){b=b||f.lib;var c=g[b].library();return c[g[b][a]]}function c(a,b){return b=b||f.lib,g[b][a]}function d(b){if(b)return{lib:a.fnName(b),constructor:b};if(null!=window.Auth0Lock)return{lib:"Auth0Lock",constructor:window.Auth0Lock};if(null!=window.Auth0)return{lib:"Auth0",constructor:window.Auth0};if(null!=Auth0Widget)throw new Error("Auth0Widget is not supported with this version of auth0-angularanymore. Please try with an older one");throw new Error("Cannott initialize Auth0Angular. Auth0Lock or Auth0 must be available")}var e={callbackOnLocationHash:!0},f=this,g={Auth0:{signin:"login",signup:"signup",reset:"changePassword",library:function(){return f.auth0js},parseOptions:function(a){var b=angular.copy(a);return b.authParams&&(angular.extend(b,b.authParams),delete b.authParams),b}},Auth0Lock:{signin:"show",signup:"showSignup",reset:"showReset",library:function(){return f.auth0lib},parseOptions:function(a){return angular.copy(a)}}};this.init=function(a,b){if(!a)throw new Error("You must set options when calling init");this.loginUrl=a.loginUrl,this.loginState=a.loginState,this.clientID=a.clientID||a.clientId;var c=a.domain;this.sso=a.sso;var f=d(b);this.lib=f.lib,"Auth0Lock"===f.lib?(this.auth0lib=new f.constructor(this.clientID,c,angular.extend(e,a)),this.auth0js=this.auth0lib.getClient(),this.isLock=!0):(this.auth0lib=new f.constructor(angular.extend(e,a)),this.auth0js=this.auth0lib,this.isLock=!1),this.initialized=!0},this.eventHandlers={},this.on=function(a,b){this.eventHandlers[a]||(this.eventHandlers[a]=[]),this.eventHandlers[a].push(b)};var h=["loginSuccess","loginFailure","logout","forbidden","authenticated"];angular.forEach(h,function(b){f["add"+a.capitalize(b)+"Handler"]=function(a){f.on(b,a)}}),this.$get=["$rootScope","$q","$injector","$window","$location","authUtils",function(a,d,e,h,i,j){function k(){f.loginUrl?i.path(f.loginUrl):f.loginState?e.get("$state").go(f.loginState):n("forbidden")}var l={isAuthenticated:!1},m=function(a){return f.eventHandlers[a]},n=function(b,c){a.$broadcast("auth0."+b,c),angular.forEach(m(b)||[],function(a){e.invoke(a,l,c)})},o=function(a,b,c,d,e,f){var g=l.getProfile(a),h={idToken:a,accessToken:b,state:c,refreshToken:d,profile:e,isAuthenticated:!0};return angular.extend(l,h),n(f?"authenticated":"loginSuccess",angular.extend({profilePromise:g},h)),g};a.$on("$locationChangeStart",function(){if(f.initialized){var a=f.auth0lib.parseHash(h.location.hash);if(!l.isAuthenticated){if(a&&a.id_token)return void o(a.id_token,a.access_token,a.state,a.refresh_token);f.sso&&f.auth0js.getSSOData(j.applied(function(a,b){b.sso&&l.signin({popup:!1,callbackOnLocationHash:!0,connection:b.lastUsedConnection.name},null,null,"Auth0")}))}}}),a.$on("auth0.forbiddenRequest",function(){k()}),f.loginUrl&&a.$on("$routeChangeStart",function(a,b){f.initialized&&b.$$route&&b.$$route.requiresLogin&&(l.isAuthenticated||l.refreshTokenPromise||i.path(f.loginUrl))}),f.loginState&&a.$on("$stateChangeStart",function(a,b){f.initialized&&b.data&&b.data.requiresLogin&&(l.isAuthenticated||l.refreshTokenPromise||(a.preventDefault(),e.get("$state").go(f.loginState)))}),l.config=f;var p=function(a,b){var c=m("loginSuccess");if(!(b||a.username||a.email||c&&0!==c.length))throw new Error("You must define a loginSuccess handler if not using popup mode or not doing ro call because that means you are doing a redirect")};return l.hookEvents=function(){},l.init=angular.bind(f,f.init),l.getToken=function(a){a=a||{scope:"openid"},a.id_token||a.refresh_token||(a.id_token=l.idToken);var b=j.promisify(f.auth0js.getDelegationToken,f.auth0js);return b(a)},l.refreshIdToken=function(a){var b=j.promisify(f.auth0js.refreshToken,f.auth0js);return l.refreshTokenPromise=b(a||l.refreshToken).then(function(a){return a.id_token})["finally"](function(){l.refreshTokenPromise=null}),l.refreshTokenPromise},l.renewIdToken=function(a){var b=j.promisify(f.auth0js.renewIdToken,f.auth0js);return b(a||l.idToken).then(function(a){return a.id_token})},l.signin=function(a,d,e,h){a=a||{},p(a,d,e),a=c("parseOptions",h)(a);var i=b("signin",h),k=d?function(b,c,e,f,g){c||angular.isUndefined(a.loginAfterSignup)||a.loginAfterSignup?o(c,e,f,g,b).then(function(a){d&&d(a,c,e,f,g)}):d()}:null,l=e?function(a){n("loginFailure",{error:a}),e&&e(a)}:null,m=j.callbackify(i,k,l,g[h||f.lib].library());m(a)},l.signup=function(a,d,e){a=a||{},p(a,d,e),a=c("parseOptions")(a);var g=d?function(b,c,e,f,g){angular.isUndefined(a.auto_login)||a.auto_login?o(c,e,f,g,b).then(function(a){d&&d(a,c,e,f,g)}):d()}:null,h=e?function(a){n("loginFailure",{error:a}),e&&e(a)}:null,i=f.auth0lib,k=j.callbackify(b("signup"),g,h,i);k(a)},l.reset=function(a,d,e){a=a||{},a=c("parseOptions")(a);var g=f.auth0lib,h=j.callbackify(b("reset"),d,e,g);h(a)},l.signout=function(){l.isAuthenticated=!1,l.profile=null,l.profilePromise=null,l.idToken=null,l.state=null,l.accessToken=null,l.tokenPayload=null,n("logout")},l.authenticate=function(a,b,c,d,e){return o(b,c,d,e,a,!0)},l.getProfile=function(a){var b=j.promisify(f.auth0lib.getProfile,f.auth0lib);return l.profilePromise=b(a||l.idToken),l.profilePromise.then(function(a){return l.profile=a,a})},l}]}])}(); |
# 4.0.X | ||
## 4.0.3 | ||
## 4.0.3 & 4.0.4 | ||
* Added loginAfterSignup support | ||
@@ -6,0 +6,0 @@ |
/** | ||
* Angular SDK to use with Auth0 | ||
* @version v4.0.2 - 2015-04-28 | ||
* @version v4.0.4 - 2015-04-28 | ||
* @link https://auth0.com | ||
@@ -352,3 +352,3 @@ * @author Martin Gontovnikas | ||
var successFn = !successCallback ? null : function (profile, idToken, accessToken, state, refreshToken) { | ||
if (!angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
if (!idToken && !angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
successCallback(); | ||
@@ -355,0 +355,0 @@ } else { |
/** | ||
* Angular SDK to use with Auth0 | ||
* @version v4.0.2 - 2015-04-28 | ||
* @version v4.0.4 - 2015-04-28 | ||
* @link https://auth0.com | ||
@@ -352,3 +352,3 @@ * @author Martin Gontovnikas | ||
var successFn = !successCallback ? null : function (profile, idToken, accessToken, state, refreshToken) { | ||
if (!angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
if (!idToken && !angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
successCallback(); | ||
@@ -355,0 +355,0 @@ } else { |
/** | ||
* Angular SDK to use with Auth0 | ||
* @version v4.0.2 - 2015-04-28 | ||
* @version v4.0.4 - 2015-04-28 | ||
* @link https://auth0.com | ||
@@ -352,3 +352,3 @@ * @author Martin Gontovnikas | ||
var successFn = !successCallback ? null : function (profile, idToken, accessToken, state, refreshToken) { | ||
if (!angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
if (!idToken && !angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
successCallback(); | ||
@@ -355,0 +355,0 @@ } else { |
/** | ||
* Angular SDK to use with Auth0 | ||
* @version v4.0.2 - 2015-04-28 | ||
* @version v4.0.4 - 2015-04-28 | ||
* @link https://auth0.com | ||
@@ -352,3 +352,3 @@ * @author Martin Gontovnikas | ||
var successFn = !successCallback ? null : function (profile, idToken, accessToken, state, refreshToken) { | ||
if (!angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
if (!idToken && !angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
successCallback(); | ||
@@ -355,0 +355,0 @@ } else { |
/** | ||
* Angular SDK to use with Auth0 | ||
* @version v4.0.2 - 2015-04-28 | ||
* @version v4.0.4 - 2015-04-28 | ||
* @link https://auth0.com | ||
@@ -352,3 +352,3 @@ * @author Martin Gontovnikas | ||
var successFn = !successCallback ? null : function (profile, idToken, accessToken, state, refreshToken) { | ||
if (!angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
if (!idToken && !angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
successCallback(); | ||
@@ -355,0 +355,0 @@ } else { |
/** | ||
* Angular SDK to use with Auth0 | ||
* @version v4.0.2 - 2015-04-28 | ||
* @version v4.0.4 - 2015-04-28 | ||
* @link https://auth0.com | ||
@@ -352,3 +352,3 @@ * @author Martin Gontovnikas | ||
var successFn = !successCallback ? null : function (profile, idToken, accessToken, state, refreshToken) { | ||
if (!angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
if (!idToken && !angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
successCallback(); | ||
@@ -355,0 +355,0 @@ } else { |
/** | ||
* Angular SDK to use with Auth0 | ||
* @version v4.0.2 - 2015-04-28 | ||
* @version v4.0.4 - 2015-04-28 | ||
* @link https://auth0.com | ||
@@ -352,3 +352,3 @@ * @author Martin Gontovnikas | ||
var successFn = !successCallback ? null : function (profile, idToken, accessToken, state, refreshToken) { | ||
if (!angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
if (!idToken && !angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
successCallback(); | ||
@@ -355,0 +355,0 @@ } else { |
@@ -8,3 +8,3 @@ require.config({ | ||
'angular-storage': '//cdn.rawgit.com/auth0/angular-storage/master/dist/angular-storage', | ||
'auth0': '//cdn.auth0.com/w2/auth0-4' | ||
'auth0': '//cdn.auth0.com/w2/auth0-6' | ||
}, | ||
@@ -11,0 +11,0 @@ shim: { |
/** | ||
* Angular SDK to use with Auth0 | ||
* @version v4.0.2 - 2015-04-28 | ||
* @version v4.0.4 - 2015-04-28 | ||
* @link https://auth0.com | ||
@@ -352,3 +352,3 @@ * @author Martin Gontovnikas | ||
var successFn = !successCallback ? null : function (profile, idToken, accessToken, state, refreshToken) { | ||
if (!angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
if (!idToken && !angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
successCallback(); | ||
@@ -355,0 +355,0 @@ } else { |
/** | ||
* Angular SDK to use with Auth0 | ||
* @version v4.0.2 - 2015-04-28 | ||
* @version v4.0.4 - 2015-04-28 | ||
* @link https://auth0.com | ||
@@ -352,3 +352,3 @@ * @author Martin Gontovnikas | ||
var successFn = !successCallback ? null : function (profile, idToken, accessToken, state, refreshToken) { | ||
if (!angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
if (!idToken && !angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
successCallback(); | ||
@@ -355,0 +355,0 @@ } else { |
/** | ||
* Angular SDK to use with Auth0 | ||
* @version v4.0.2 - 2015-04-28 | ||
* @version v4.0.4 - 2015-04-28 | ||
* @link https://auth0.com | ||
@@ -352,3 +352,3 @@ * @author Martin Gontovnikas | ||
var successFn = !successCallback ? null : function (profile, idToken, accessToken, state, refreshToken) { | ||
if (!angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
if (!idToken && !angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
successCallback(); | ||
@@ -355,0 +355,0 @@ } else { |
/** | ||
* Angular SDK to use with Auth0 | ||
* @version v4.0.2 - 2015-04-28 | ||
* @version v4.0.4 - 2015-04-28 | ||
* @link https://auth0.com | ||
@@ -352,3 +352,3 @@ * @author Martin Gontovnikas | ||
var successFn = !successCallback ? null : function (profile, idToken, accessToken, state, refreshToken) { | ||
if (!angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
if (!idToken && !angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
successCallback(); | ||
@@ -355,0 +355,0 @@ } else { |
@@ -6,3 +6,3 @@ { | ||
"author": "Martin Gontovnikas", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"main": "./build/auth0-angular.js", | ||
@@ -9,0 +9,0 @@ "devDependencies": { |
@@ -33,4 +33,4 @@ # Auth0 and AngularJS | ||
````html | ||
<script type="text/javascript" src="//cdn.auth0.com/js/lock-6.js"></script> | ||
<script type="text/javascript" src="//cdn.auth0.com/w2/auth0-angular-3.js"></script> | ||
<script type="text/javascript" src="//cdn.auth0.com/js/lock-7.js"></script> | ||
<script type="text/javascript" src="//cdn.auth0.com/w2/auth0-angular-4.js"></script> | ||
```` | ||
@@ -37,0 +37,0 @@ |
@@ -399,3 +399,3 @@ (function () { | ||
var successFn = !successCallback ? null : function(profile, idToken, accessToken, state, refreshToken) { | ||
if (!angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
if (!idToken && !angular.isUndefined(options.loginAfterSignup) && !options.loginAfterSignup) { | ||
successCallback(); | ||
@@ -402,0 +402,0 @@ } else { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
453488