@auth0/auth0-angular 1.10.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/auth0-auth0-angular.d.ts +1 -1
- package/bundles/auth0-auth0-angular.umd.js +106 -93
- package/bundles/auth0-auth0-angular.umd.js.map +1 -1
- package/esm2015/auth0-auth0-angular.js +1 -2
- package/esm2015/lib/abstract-navigator.js +10 -13
- package/esm2015/lib/auth.client.js +3 -3
- package/esm2015/lib/auth.config.js +12 -8
- package/esm2015/lib/auth.guard.js +9 -11
- package/esm2015/lib/auth.interceptor.js +14 -12
- package/esm2015/lib/auth.module.js +8 -4
- package/esm2015/lib/auth.service.js +17 -22
- package/esm2015/lib/auth.state.js +11 -10
- package/esm2015/useragent.js +2 -2
- package/fesm2015/auth0-auth0-angular.js +92 -87
- package/fesm2015/auth0-auth0-angular.js.map +1 -1
- package/lib/abstract-navigator.d.ts +3 -0
- package/lib/auth.config.d.ts +3 -0
- package/lib/auth.guard.d.ts +3 -0
- package/lib/auth.interceptor.d.ts +3 -0
- package/lib/auth.module.d.ts +4 -0
- package/lib/auth.service.d.ts +3 -0
- package/lib/auth.state.d.ts +3 -0
- package/package.json +4 -5
- package/auth0-auth0-angular.metadata.json +0 -1
package/lib/auth.state.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Auth0Client } from '@auth0/auth0-spa-js';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
/**
|
|
3
4
|
* Tracks the Authentication State for the SDK
|
|
4
5
|
*/
|
|
@@ -61,4 +62,6 @@ export declare class AuthState {
|
|
|
61
62
|
* @param error The new error
|
|
62
63
|
*/
|
|
63
64
|
setError(error: any): void;
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthState, never>;
|
|
66
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthState>;
|
|
64
67
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auth0/auth0-angular",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "Auth0 SDK for Angular Single Page Applications (SPA)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"auth0",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/auth0/auth0-angular#readme",
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@angular/common": ">=
|
|
25
|
-
"@angular/core": ">=
|
|
26
|
-
"@angular/router": ">=
|
|
24
|
+
"@angular/common": ">=12 <=14",
|
|
25
|
+
"@angular/core": ">=12 <=14",
|
|
26
|
+
"@angular/router": ">=12 <=14"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"tslib": "^2.0.0",
|
|
@@ -36,6 +36,5 @@
|
|
|
36
36
|
"esm2015": "esm2015/auth0-auth0-angular.js",
|
|
37
37
|
"fesm2015": "fesm2015/auth0-auth0-angular.js",
|
|
38
38
|
"typings": "auth0-auth0-angular.d.ts",
|
|
39
|
-
"metadata": "auth0-auth0-angular.metadata.json",
|
|
40
39
|
"sideEffects": false
|
|
41
40
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"exports":[{"export":[{"name":"ICache","as":"ICache"},{"name":"Cacheable","as":"Cacheable"},{"name":"LocalStorageCache","as":"LocalStorageCache"},{"name":"InMemoryCache","as":"InMemoryCache"},{"name":"IdToken","as":"IdToken"},{"name":"User","as":"User"}],"from":"@auth0/auth0-spa-js"}],"metadata":{"AuthService":{"__symbolic":"class","arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":45,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":87,"character":5},"arguments":[{"__symbolic":"reference","name":"Auth0ClientService"}]}],null,null,null],"parameters":[{"__symbolic":"reference","module":"@auth0/auth0-spa-js","name":"Auth0Client","line":87,"character":53},{"__symbolic":"reference","name":"AuthClientConfig"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"AuthState"}]}],"ngOnDestroy":[{"__symbolic":"method"}],"loginWithRedirect":[{"__symbolic":"method"}],"loginWithPopup":[{"__symbolic":"method"}],"logout":[{"__symbolic":"method"}],"getAccessTokenSilently":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"getAccessTokenWithPopup":[{"__symbolic":"method"}],"getUser":[{"__symbolic":"method"}],"getIdTokenClaims":[{"__symbolic":"method"}],"handleRedirectCallback":[{"__symbolic":"method"}],"buildAuthorizeUrl":[{"__symbolic":"method"}],"buildLogoutUrl":[{"__symbolic":"method"}],"shouldHandleCallback":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"AuthModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1}}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"AuthModule"},"providers":[{"__symbolic":"reference","name":"AuthService"},{"__symbolic":"reference","name":"AuthGuard"},{"provide":{"__symbolic":"reference","name":"AuthConfigService"},"useValue":{"__symbolic":"reference","name":"config"}},{"provide":{"__symbolic":"reference","name":"Auth0ClientService"},"useFactory":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Auth0ClientFactory"},"member":"createClient"},"deps":[{"__symbolic":"reference","name":"AuthClientConfig"}]}]}}}},"AuthGuard":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":14,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"AuthService"}]}],"canLoad":[{"__symbolic":"method"}],"canActivate":[{"__symbolic":"method"}],"canActivateChild":[{"__symbolic":"method"}],"redirectIfUnauthenticated":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"AuthHttpInterceptor":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":29,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":33,"character":5},"arguments":[{"__symbolic":"reference","name":"Auth0ClientService"}]}],null],"parameters":[{"__symbolic":"reference","name":"AuthClientConfig"},{"__symbolic":"reference","module":"@auth0/auth0-spa-js","name":"Auth0Client","line":33,"character":53},{"__symbolic":"reference","name":"AuthState"}]}],"intercept":[{"__symbolic":"method"}],"getAccessTokenSilently":[{"__symbolic":"method"}],"stripQueryFrom":[{"__symbolic":"method"}],"canAttachToken":[{"__symbolic":"method"}],"findMatchingRoute":[{"__symbolic":"method"}],"allowAnonymous":[{"__symbolic":"method"}]}},"HttpMethod":{"Get":"GET","Post":"POST","Put":"PUT","Patch":"PATCH","Delete":"DELETE","Head":"HEAD"},"ApiRouteDefinition":{"__symbolic":"interface"},"isHttpInterceptorRouteConfig":{"__symbolic":"function","parameters":["def"],"value":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":35,"character":9,"module":"./lib/auth.config"},"right":"string"}},"HttpInterceptorConfig":{"__symbolic":"interface"},"HttpInterceptorRouteConfig":{"__symbolic":"interface"},"AuthConfig":{"__symbolic":"interface"},"AppState":{"__symbolic":"interface"},"AuthClientConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":345,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":349,"character":15}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":349,"character":27},"arguments":[{"__symbolic":"reference","name":"AuthConfigService"}]}]],"parameters":[{"__symbolic":"reference","name":"any"}]}],"set":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"AuthConfigService":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":382,"character":37},"arguments":["auth0-angular.config"]},"Auth0ClientFactory":{"__symbolic":"class","members":{}},"Auth0ClientService":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":33,"character":38},"arguments":["auth0.client"]},"AuthState":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":24,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":112,"character":15},"arguments":[{"__symbolic":"reference","name":"Auth0ClientService"}]}]],"parameters":[{"__symbolic":"reference","module":"@auth0/auth0-spa-js","name":"Auth0Client","line":112,"character":63}]}],"setIsLoading":[{"__symbolic":"method"}],"refresh":[{"__symbolic":"method"}],"setAccessToken":[{"__symbolic":"method"}],"setError":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common","name":"Location","line":10,"character":32},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":10,"character":52}]}],"navigateByUrl":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}}},"origins":{"AuthService":"./lib/auth.service","AuthModule":"./lib/auth.module","AuthGuard":"./lib/auth.guard","AuthHttpInterceptor":"./lib/auth.interceptor","HttpMethod":"./lib/auth.config","ApiRouteDefinition":"./lib/auth.config","isHttpInterceptorRouteConfig":"./lib/auth.config","HttpInterceptorConfig":"./lib/auth.config","HttpInterceptorRouteConfig":"./lib/auth.config","AuthConfig":"./lib/auth.config","AppState":"./lib/auth.config","AuthClientConfig":"./lib/auth.config","AuthConfigService":"./lib/auth.config","Auth0ClientFactory":"./lib/auth.client","Auth0ClientService":"./lib/auth.client","AuthState":"./lib/auth.state","ɵa":"./lib/abstract-navigator"},"importAs":"@auth0/auth0-angular"}
|