Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kamp-n/auth0-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kamp-n/auth0-wrapper - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

3

bundles/kamp-n-auth0-wrapper.umd.js

@@ -210,2 +210,3 @@ (function (global, factory) {

exports.WebAuth = auth0Js.WebAuth;
exports.WebAuthProvider = WebAuthProvider;

@@ -226,2 +227,2 @@ exports.AuthOptionsProvider = AuthOptionsProvider;

//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2FtcC1uLWF1dGgwLXdyYXBwZXIudW1kLmpzLm1hcCIsInNvdXJjZXMiOlsibmc6Ly9Aa2FtcC1uL2F1dGgwLXdyYXBwZXIvbGliL3Byb3ZpZGVycy9hdXRoMC50cyIsIm5vZGVfbW9kdWxlcy90c2xpYi90c2xpYi5lczYuanMiLCJuZzovL0BrYW1wLW4vYXV0aDAtd3JhcHBlci9saWIvaGVscGVycy9hdXRoMFJ4LnRzIiwibmc6Ly9Aa2FtcC1uL2F1dGgwLXdyYXBwZXIvbGliL21vZHVsZS50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0ZhY3RvcnlQcm92aWRlciwgSW5qZWN0aW9uVG9rZW59IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xyXG5pbXBvcnQge0F1dGhPcHRpb25zLCBXZWJBdXRofSBmcm9tICdhdXRoMC1qcyc7XHJcbmltcG9ydCB7QXV0aDBDb25maWd9IGZyb20gJy4uL2ludGVyZmFjZXMvYXV0aDAnO1xyXG5cclxuZXhwb3J0IGNvbnN0IEFVVEgwX0NPTkZJRzpJbmplY3Rpb25Ub2tlbjxBdXRoMENvbmZpZz4gPSBuZXcgSW5qZWN0aW9uVG9rZW4oJ2F1dGgwX2N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module?n(exports,require("@angular/core"),require("auth0-js"),require("rxjs")):"function"==typeof define&&define.amd?define("@kamp-n/auth0-wrapper",["exports","@angular/core","auth0-js","rxjs"],n):n((e["kamp-n"]=e["kamp-n"]||{},e["kamp-n"]["auth0-wrapper"]={}),e.ng.core,e.auth0Js,e.rxjs)}(this,function(e,n,r,o){"use strict";var t=new n.InjectionToken("auth0_config"),a={provide:t,useFactory:i};function i(){var e={};try{e=JSON.parse(decodeURIComponent(escape(atob("@@config@@"))))}catch(n){console.warn("unable to load the auth0 config")}return e}var u=new n.InjectionToken("auth0_options"),c={provide:u,useFactory:p,deps:[t]};function p(e){return Object.assign({domain:e.auth0Domain,clientID:e.clientID,redirectUrl:e.callbackURL,responseType:(e.internalOptions||{}).response_type||e.callbackOnLocationHash?"token":"code"},e.internalOptions)}var s={provide:r.WebAuth,useFactory:l,deps:[u]};function l(e){return new r.WebAuth(e)}function f(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,o,a=r.call(e),i=[];try{for(;(void 0===n||0<n--)&&!(t=a.next()).done;)i.push(t.value)}catch(u){o={error:u}}finally{try{t&&!t.done&&(r=a["return"])&&r.call(a)}finally{if(o)throw o.error}}return i}function d(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(f(arguments[n]));return e}var h=function(){function t(e){this.instance=e}return t.exec=function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return o.Observable.create(function(r){e[n].apply(e,d(t,[function(e,n){e?r.error(e):(r.next(n),r.complete())}]))})},t.prototype.call=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return t.exec.apply(t,d([this.instance,e],n))},t}(),v=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[a,c,s]}},e.decorators=[{type:n.NgModule,args:[{imports:[],exports:[],declarations:[],providers:[]}]}],e}();e.WebAuthProvider=s,e.AuthOptionsProvider=c,e.AUTH_OPTIONS=u,e.AUTH0_CONFIG=t,e.Auth0Rx=h,e.Auth0WrapperModule=v,e.ɵa=a,e.ɵb=i,e.ɵc=p,e.ɵd=l,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/core"),require("auth0-js"),require("rxjs")):"function"==typeof define&&define.amd?define("@kamp-n/auth0-wrapper",["exports","@angular/core","auth0-js","rxjs"],n):n((e["kamp-n"]=e["kamp-n"]||{},e["kamp-n"]["auth0-wrapper"]={}),e.ng.core,e.auth0Js,e.rxjs)}(this,function(e,n,r,o){"use strict";var t=new n.InjectionToken("auth0_config"),a={provide:t,useFactory:u};function u(){var e={};try{e=JSON.parse(decodeURIComponent(escape(atob("@@config@@"))))}catch(n){console.warn("unable to load the auth0 config")}return e}var i=new n.InjectionToken("auth0_options"),c={provide:i,useFactory:p,deps:[t]};function p(e){return Object.assign({domain:e.auth0Domain,clientID:e.clientID,redirectUrl:e.callbackURL,responseType:(e.internalOptions||{}).response_type||e.callbackOnLocationHash?"token":"code"},e.internalOptions)}var s={provide:r.WebAuth,useFactory:l,deps:[i]};function l(e){return new r.WebAuth(e)}function f(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,o,a=r.call(e),u=[];try{for(;(void 0===n||0<n--)&&!(t=a.next()).done;)u.push(t.value)}catch(i){o={error:i}}finally{try{t&&!t.done&&(r=a["return"])&&r.call(a)}finally{if(o)throw o.error}}return u}function d(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(f(arguments[n]));return e}var h=function(){function t(e){this.instance=e}return t.exec=function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return o.Observable.create(function(r){e[n].apply(e,d(t,[function(e,n){e?r.error(e):(r.next(n),r.complete())}]))})},t.prototype.call=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return t.exec.apply(t,d([this.instance,e],n))},t}(),v=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[a,c,s]}},e.decorators=[{type:n.NgModule,args:[{imports:[],exports:[],declarations:[],providers:[]}]}],e}();e.WebAuth=r.WebAuth,e.WebAuthProvider=s,e.AuthOptionsProvider=c,e.AUTH_OPTIONS=i,e.AUTH0_CONFIG=t,e.Auth0Rx=h,e.Auth0WrapperModule=v,e.ɵa=a,e.ɵb=u,e.ɵc=p,e.ɵd=l,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=kamp-n-auth0-wrapper.umd.min.js.map

@@ -8,4 +8,4 @@ /**

*/
export { WebAuthProvider, AuthOptionsProvider, AUTH_OPTIONS, AUTH0_CONFIG, Auth0Rx, Auth0WrapperModule } from './public_api';
export { WebAuthProvider, AuthOptionsProvider, AUTH_OPTIONS, AUTH0_CONFIG, WebAuth, Auth0Rx, Auth0WrapperModule } from './public_api';
export { Auth0ConfigProvider as ɵa, getAuth0Config as ɵb, getAuthOptions as ɵc, initWebAuth as ɵd } from './lib/providers/auth0';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2FtcC1uLWF1dGgwLXdyYXBwZXIuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Aa2FtcC1uL2F1dGgwLXdyYXBwZXIvIiwic291cmNlcyI6WyJrYW1wLW4tYXV0aDAtd3JhcHBlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsOEdBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxtQkFBbUIsSUFBSSxFQUFFLEVBQUMsY0FBYyxJQUFJLEVBQUUsRUFBQyxjQUFjLElBQUksRUFBRSxFQUFDLFdBQVcsSUFBSSxFQUFFLEVBQUMsTUFBTSx1QkFBdUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcblxuZXhwb3J0IHtBdXRoMENvbmZpZ1Byb3ZpZGVyIGFzIMm1YSxnZXRBdXRoMENvbmZpZyBhcyDJtWIsZ2V0QXV0aE9wdGlvbnMgYXMgybVjLGluaXRXZWJBdXRoIGFzIMm1ZH0gZnJvbSAnLi9saWIvcHJvdmlkZXJzL2F1dGgwJzsiXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2FtcC1uLWF1dGgwLXdyYXBwZXIuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Aa2FtcC1uL2F1dGgwLXdyYXBwZXIvIiwic291cmNlcyI6WyJrYW1wLW4tYXV0aDAtd3JhcHBlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsdUhBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxtQkFBbUIsSUFBSSxFQUFFLEVBQUMsY0FBYyxJQUFJLEVBQUUsRUFBQyxjQUFjLElBQUksRUFBRSxFQUFDLFdBQVcsSUFBSSxFQUFFLEVBQUMsTUFBTSx1QkFBdUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcblxuZXhwb3J0IHtBdXRoMENvbmZpZ1Byb3ZpZGVyIGFzIMm1YSxnZXRBdXRoMENvbmZpZyBhcyDJtWIsZ2V0QXV0aE9wdGlvbnMgYXMgybVjLGluaXRXZWJBdXRoIGFzIMm1ZH0gZnJvbSAnLi9saWIvcHJvdmlkZXJzL2F1dGgwJzsiXX0=

@@ -12,2 +12,3 @@ /**

export { Auth0WrapperModule } from './lib/module';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BrYW1wLW4vYXV0a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DdkMsbUNBQWMsY0FBYyxDQUFDO0FBQzdCLE9BQU8sRUFBQyxPQUFPLEVBQUMsTUFBTSxVQUFVLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIGF1dGgwLXdyYXBwZXJcbiAqL1xuZXhwb3J0IHtXZWJBdXRoUHJvdmlkZXIsIEF1dGhPcHRpb25zUHJvdmlkZXIsIEFVVEhfT1BUSU9OUywgQVVUSDBfQ09ORklHfSBmcm9tICcuL2xpYi9wcm92aWRlcnMvYXV0aDAnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvaGVscGVycy9hdXRoMFJ4JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2ludGVyZmFjZXMvYXV0aDAnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbW9kdWxlJztcbmV4cG9ydCB7V2ViQXV0aH0gZnJvbSAnYXV0aDAtanMnOyJdfQ==

@@ -8,4 +8,4 @@ /**

*/
export { WebAuthProvider, AuthOptionsProvider, AUTH_OPTIONS, AUTH0_CONFIG, Auth0Rx, Auth0WrapperModule } from './public_api';
export { WebAuthProvider, AuthOptionsProvider, AUTH_OPTIONS, AUTH0_CONFIG, WebAuth, Auth0Rx, Auth0WrapperModule } from './public_api';
export { Auth0ConfigProvider as ɵa, getAuth0Config as ɵb, getAuthOptions as ɵc, initWebAuth as ɵd } from './lib/providers/auth0';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2FtcC1uLWF1dGgwLXdyYXBwZXIuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Aa2FtcC1uL2F1dGgwLXdyYXBwZXIvIiwic291cmNlcyI6WyJrYW1wLW4tYXV0aDAtd3JhcHBlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsOEdBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxtQkFBbUIsSUFBSSxFQ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yDJtWIsZ2V0QXV0aE9wdGlvbnMgYXMgybVjLGluaXRXZWJBdXRoIGFzIMm1ZH0gZnJvbSAnLi9saWIvcHJvdmlkZXJzL2F1dGgwJzsiXX0=

@@ -12,2 +12,3 @@ /**

export { Auth0WrapperModule } from './lib/module';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BrYW1wLW4vYXV0aDAtd3JhcHBlci8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUdBLE9BQU8sRUFBQyxlQUFlLEVBQUUsbUJBQW1CLEVBQUUsWUFBWSxFQUFFLFlBQVksRUFBQyxNQUFNLHVCQUF1QixDQUFDO0FBQ3ZHLHdCQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGVBQWMsd0JBQXdCLENBQUM7QUFDdkMsbUNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBhdXRoMC13cmFwcGVyXG4gKi9cbmV4cG9ydCB7V2ViQXV0aFByb3ZpZGVyLCBBdXRoT3B0aW9uc1Byb3ZpZGVyLCBBVVRIX09QVElPTlMsIEFVVEgwX0NPTkZJR30gZnJvbSAnLi9saWIvcHJvdmlkZXJzL2F1dGgwJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2hlbHBlcnMvYXV0aDBSeCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9pbnRlcmZhY2VzL2F1dGgwJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL21vZHVsZSc7XG4iXX0=
export { WebAuth } from 'auth0-js';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BrYW1wLW4vYXV0aDAtd3JhcHBlci8iLCJzb3VyY2VzIjpbInB1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUdBLE9BQU8sRUFBQyxlQUFlLEVBQUUsbUJBQW1CLEVBQUUsWUFBWSxFQUFFLFlBQVksRUFBQyxNQUFNLHVCQUF1QixDQUFDO0FBQ3ZHLHdCQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGVBQWMsd0JBQXdCLENBQUM7QUFDdkMsbUNBQWMsY0FBYyxDQUFDO0FBQzdCLE9BQU8sRUFBQyxPQUFPLEVBQUMsTUFBTSxVQUFVLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIGF1dGgwLXdyYXBwZXJcbiAqL1xuZXhwb3J0IHtXZWJBdXRoUHJvdmlkZXIsIEF1dGhPcHRpb25zUHJvdmlkZXIsIEFVVEhfT1BUSU9OUywgQVVUSDBfQ09ORklHfSBmcm9tICcuL2xpYi9wcm92aWRlcnMvYXV0aDAnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvaGVscGVycy9hdXRoMFJ4JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2ludGVyZmFjZXMvYXV0aDAnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbW9kdWxlJztcbmV4cG9ydCB7V2ViQXV0aH0gZnJvbSAnYXV0aDAtanMnOyJdfQ==
import { InjectionToken, NgModule } from '@angular/core';
import { WebAuth } from 'auth0-js';
export { WebAuth } from 'auth0-js';
import { Observable } from 'rxjs';

@@ -146,2 +147,2 @@

//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2FtcC1uLWF1dGgwLXdyYXBwZXIuanMubWFwIiwic291cmNlcyI6WyJuZzovL0BrYW1wLW4vYXV0aDAtd3JhcHBlci9saWIvcHJvdmlkZXJzL2F1dGgwLnRzIiwibmc6Ly9Aa2FtcC1uL2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BWSxFQUFFLEVBQUU7Z0JBQ2hCLFNBQVMsRUFBRSxFQUFFO2FBQ2I7Ozs7Ozs7Ozs7Ozs7OzsifQ==
import { InjectionToken, NgModule } from '@angular/core';
import { WebAuth } from 'auth0-js';
export { WebAuth } from 'auth0-js';
import { __spread } from 'tslib';

@@ -172,2 +173,2 @@ import { Observable } from 'rxjs';

//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2FtcC1uLWF1dGgwLXdyYXBwZXIuanMubWFwIiwic291cmNlcyI6WyJuZzovL0BrYW1wLW4vYXV0aDAtd3JhcHBlci9saWIvcHJvdmlkZXJzL2F1dGgwLnRzIiwibmc6Ly9Aa2FtcC1uL2F1dGgwLXdyYXBwZXIvbGliL2hlbHBlcnMvYXV0aDBSeC50cyIsIm5nOi8vQGthbXAtbi9hdXRoMC13cmFwcGVyL2xpYi9tb2R1bGUudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtGYWN0b3J5UHJvdmlkZXIsIEluamVjdGlvblRva2VufSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuaW1wb3J0IHtBdXRoT3B0aW9ucywgV2ViQXV0aH0gZnJvbSAnYXV0aDAtanMnO1xyXG5pbXBvcnQge0F1dGgwQ29uZmlnfSBmcm9tICcuLi9pbnRlcmZhY2VzL2F1dGgwJztcclxuXHJcbmV4cG9ydCBjb25zdCBBVVRIMF9DT05GSUc6SW5qZWN0aW9uVG9rZW48QXV0aDBDb25maWc+ID0gbmV3IEluamVjdGlvblRva2VuKCdhdXRoMF9jb25maWcnKTtcclxuXHJcbmV4cG9ydCBjb25zdCBBdXRoMENvbmZpZ1Byb3ZpZGVyOkZhY3RvcnlQcm92aWRlciA9IHtwcm92aWRlOiBBVVRIMF9DT05GSUcsIHVzZUZhY3Rvcnk6IGdldEF1dGgwQ29uZmlnfTtcclxuXHJcbmV4cG9ydCBmdW5jdGlvbiBnZXRBdXRoMENvbmZpZygpO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IsVUFBVSxDQUFDLFFBQVEsRUFBRSxDQUFDO3FCQUN0QjtpQkFDRCxJQUFFO1NBQ0gsQ0FBQyxDQUFDO0tBQ0g7Ozs7OztJQUVELHNCQUFJOzs7OztJQUFKLFVBQUssTUFBYTtRQUFFLGNBQWE7YUFBYixVQUFhLEVBQWIscUJBQWEsRUFBYixJQUFhO1lBQWIsNkJBQWE7O1FBQ2hDLE9BQU8sT0FBTyxDQUFDLElBQUksT0FBWixPQUFPLFlBQU0sSUFBSSxDQUFDLFFBQVEsRUFBRSxNQUFNLEdBQUssSUFBSSxHQUFFO0tBQ3BEO0lBQ0YsY0FBQztDQUFBOzs7Ozs7Ozs7OztBQ3RCRDtJQUdBO0tBaUJDOzs7O0lBVk8sMEJBQU87OztJQUFkO1FBQ0MsT0FBTztZQUNOLFFBQVEsRUFBRSxrQkFBa0I7WUFDNUIsU0FBUyxFQUFFO2dCQUNWLG1CQUFtQjtnQkFDbkIsbUJBQW1CO2dCQUNuQixlQUFlO2FBQ2Y7U0FDRCxDQUFDO0tBQ0Y7O2dCQWhCRCxRQUFRLFNBQUM7b0JBQ1QsT0FBTyxFQUFFLEVBQUU7b0JBQ1gsT0FBTyxFQUFFLEVBQUU7b0JBQ1gsWUFBWSxFQUFFLEVBQUU7b0JBQ2hCLFNBQVMsRUFBRSxFQUFFO2lCQUNiOztJQVlELHlCQUFDO0NBakJEOzs7Ozs7Ozs7Ozs7OzsifQ==

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"metadata":{"ɵa":{"provide":{"__symbolic":"reference","name":"AUTH0_CONFIG"},"useFactory":{"__symbolic":"reference","name":"ɵb"}},"ɵb":{"__symbolic":"function"},"ɵc":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"assign"},"arguments":[{"domain":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"auth0Domain"},"clientID":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"clientID"},"redirectUrl":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"callbackURL"},"responseType":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"select","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"internalOptions"},"right":{}},"member":"response_type"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"callbackOnLocationHash"}},"thenExpression":"token","elseExpression":"code"}},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"internalOptions"}]}},"ɵd":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"auth0-js","name":"WebAuth","line":42,"character":12},"arguments":[{"__symbolic":"reference","name":"config"}]}},"WebAuthProvider":{"provide":{"__symbolic":"reference","module":"auth0-js","name":"WebAuth","line":36,"character":10},"useFactory":{"__symbolic":"reference","name":"ɵd"},"deps":[{"__symbolic":"reference","name":"AUTH_OPTIONS"}]},"AuthOptionsProvider":{"provide":{"__symbolic":"reference","name":"AUTH_OPTIONS"},"useFactory":{"__symbolic":"reference","name":"ɵc"},"deps":[{"__symbolic":"reference","name":"AUTH0_CONFIG"}]},"AUTH_OPTIONS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":18,"character":60},"arguments":["auth0_options"]},"AUTH0_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":60},"arguments":["auth0_config"]},"Auth0Rx":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"}]}],"call":[{"__symbolic":"method"}]},"statics":{"exec":{"__symbolic":"function","parameters":["instance","method","args"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"rxjs","name":"Observable","line":8,"character":9},"member":"create"},"arguments":[{"__symbolic":"error","message":"Lambda not supported","line":8,"character":27,"module":"./lib/helpers/auth0Rx"}]}}}},"Auth0Config":{"__symbolic":"interface"},"Auth0HttpException":{"__symbolic":"interface"},"Auth0WrapperModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":3,"character":1},"arguments":[{"imports":[],"exports":[],"declarations":[],"providers":[]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"Auth0WrapperModule"},"providers":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"AuthOptionsProvider"},{"__symbolic":"reference","name":"WebAuthProvider"}]}}}}},"origins":{"ɵa":"./lib/providers/auth0","ɵb":"./lib/providers/auth0","ɵc":"./lib/providers/auth0","ɵd":"./lib/providers/auth0","WebAuthProvider":"./lib/providers/auth0","AuthOptionsProvider":"./lib/providers/auth0","AUTH_OPTIONS":"./lib/providers/auth0","AUTH0_CONFIG":"./lib/providers/auth0","Auth0Rx":"./lib/helpers/auth0Rx","Auth0Config":"./lib/interfaces/auth0","Auth0HttpException":"./lib/interfaces/auth0","Auth0WrapperModule":"./lib/module"},"importAs":"@kamp-n/auth0-wrapper"}
{"__symbolic":"module","version":4,"exports":[{"export":[{"name":"WebAuth","as":"WebAuth"}],"from":"auth0-js"}],"metadata":{"ɵa":{"provide":{"__symbolic":"reference","name":"AUTH0_CONFIG"},"useFactory":{"__symbolic":"reference","name":"ɵb"}},"ɵb":{"__symbolic":"function"},"ɵc":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Object"},"member":"assign"},"arguments":[{"domain":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"auth0Domain"},"clientID":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"clientID"},"redirectUrl":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"callbackURL"},"responseType":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"select","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"internalOptions"},"right":{}},"member":"response_type"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"callbackOnLocationHash"}},"thenExpression":"token","elseExpression":"code"}},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"internalOptions"}]}},"ɵd":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"auth0-js","name":"WebAuth","line":42,"character":12},"arguments":[{"__symbolic":"reference","name":"config"}]}},"WebAuthProvider":{"provide":{"__symbolic":"reference","module":"auth0-js","name":"WebAuth","line":36,"character":10},"useFactory":{"__symbolic":"reference","name":"ɵd"},"deps":[{"__symbolic":"reference","name":"AUTH_OPTIONS"}]},"AuthOptionsProvider":{"provide":{"__symbolic":"reference","name":"AUTH_OPTIONS"},"useFactory":{"__symbolic":"reference","name":"ɵc"},"deps":[{"__symbolic":"reference","name":"AUTH0_CONFIG"}]},"AUTH_OPTIONS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":18,"character":60},"arguments":["auth0_options"]},"AUTH0_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":60},"arguments":["auth0_config"]},"Auth0Rx":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"}]}],"call":[{"__symbolic":"method"}]},"statics":{"exec":{"__symbolic":"function","parameters":["instance","method","args"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"rxjs","name":"Observable","line":8,"character":9},"member":"create"},"arguments":[{"__symbolic":"error","message":"Lambda not supported","line":8,"character":27,"module":"./lib/helpers/auth0Rx"}]}}}},"Auth0Config":{"__symbolic":"interface"},"Auth0HttpException":{"__symbolic":"interface"},"Auth0WrapperModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":3,"character":1},"arguments":[{"imports":[],"exports":[],"declarations":[],"providers":[]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"Auth0WrapperModule"},"providers":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"AuthOptionsProvider"},{"__symbolic":"reference","name":"WebAuthProvider"}]}}}}},"origins":{"ɵa":"./lib/providers/auth0","ɵb":"./lib/providers/auth0","ɵc":"./lib/providers/auth0","ɵd":"./lib/providers/auth0","WebAuthProvider":"./lib/providers/auth0","AuthOptionsProvider":"./lib/providers/auth0","AUTH_OPTIONS":"./lib/providers/auth0","AUTH0_CONFIG":"./lib/providers/auth0","Auth0Rx":"./lib/helpers/auth0Rx","Auth0Config":"./lib/interfaces/auth0","Auth0HttpException":"./lib/interfaces/auth0","Auth0WrapperModule":"./lib/module"},"importAs":"@kamp-n/auth0-wrapper"}
{
"name": "@kamp-n/auth0-wrapper",
"version": "0.0.1",
"peerDependencies": {
"@angular/common": "^7.0.0",
"@angular/core": "^7.0.0",
"auth0-js": "^9.8.1"
},
"main": "bundles/kamp-n-auth0-wrapper.umd.js",
"module": "fesm5/kamp-n-auth0-wrapper.js",
"es2015": "fesm2015/kamp-n-auth0-wrapper.js",
"esm5": "esm5/kamp-n-auth0-wrapper.js",
"esm2015": "esm2015/kamp-n-auth0-wrapper.js",
"fesm5": "fesm5/kamp-n-auth0-wrapper.js",
"fesm2015": "fesm2015/kamp-n-auth0-wrapper.js",
"typings": "kamp-n-auth0-wrapper.d.ts",
"metadata": "kamp-n-auth0-wrapper.metadata.json",
"sideEffects": false,
"dependencies": {
"tslib": "^1.9.0"
}
"name": "@kamp-n/auth0-wrapper",
"version": "0.0.2",
"peerDependencies": {
"@angular/common": "^7.0.0",
"@angular/core": "^7.0.0",
"auth0-js": "^9.8.1"
},
"main": "bundles/kamp-n-auth0-wrapper.umd.js",
"module": "fesm5/kamp-n-auth0-wrapper.js",
"es2015": "fesm2015/kamp-n-auth0-wrapper.js",
"esm5": "esm5/kamp-n-auth0-wrapper.js",
"esm2015": "esm2015/kamp-n-auth0-wrapper.js",
"fesm5": "fesm5/kamp-n-auth0-wrapper.js",
"fesm2015": "fesm2015/kamp-n-auth0-wrapper.js",
"typings": "kamp-n-auth0-wrapper.d.ts",
"metadata": "kamp-n-auth0-wrapper.metadata.json",
"sideEffects": false,
"dependencies": {
"tslib": "^1.9.0"
}
}

@@ -5,1 +5,2 @@ export { WebAuthProvider, AuthOptionsProvider, AUTH_OPTIONS, AUTH0_CONFIG } from './lib/providers/auth0';

export * from './lib/module';
export { WebAuth } from 'auth0-js';

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc