From bba1048e8040eb9894ffc563a2bfc379056d51f5 Mon Sep 17 00:00:00 2001 From: frederikprijck Date: Fri, 10 Sep 2021 14:15:36 +0200 Subject: [PATCH] Release v1.6.1 --- CHANGELOG.md | 9 + docs/assets/js/search.js | 489 +++++++---- .../abstract_navigator.abstractnavigator.html | 4 +- .../auth_client.auth0clientfactory.html | 2 +- .../classes/auth_config.authclientconfig.html | 6 +- docs/classes/auth_guard.authguard.html | 8 +- .../auth_interceptor.authhttpinterceptor.html | 17 +- docs/classes/auth_module.authmodule.html | 2 +- docs/classes/auth_service.authservice.html | 45 +- docs/classes/auth_state.authstate.html | 817 ++++++++++++++++++ docs/enums/auth_config.httpmethod.html | 12 +- docs/interfaces/auth_config.authconfig.html | 36 +- .../auth_config.httpinterceptorconfig.html | 2 +- ...uth_config.httpinterceptorrouteconfig.html | 10 +- docs/modules/auth_client.html | 2 +- docs/modules/auth_config.html | 6 +- docs/modules/auth_state.html | 32 +- projects/auth0-angular/package.json | 2 +- projects/auth0-angular/src/useragent.ts | 2 +- 19 files changed, 1259 insertions(+), 244 deletions(-) create mode 100644 docs/classes/auth_state.authstate.html diff --git a/CHANGELOG.md b/CHANGELOG.md index 9198d86a..38aaf18c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## [v1.6.1](https://github.com/auth0/auth0-angular/tree/v1.6.1) (2021-09-10) + +[Full Changelog](https://github.com/auth0/auth0-angular/compare/v1.6.0...v1.6.1) + +**Fixed** + +- Do not redirect AuthGuard when user is already authenticated [\#209](https://github.com/auth0/auth0-angular/pull/209) ([frederikprijck](https://github.com/frederikprijck)) +- Expose internal classes and Injection Tokens [\#190](https://github.com/auth0/auth0-angular/pull/190) ([frederikprijck](https://github.com/frederikprijck)) + ## [v1.6.0](https://github.com/auth0/auth0-angular/tree/v1.6.0) (2021-07-14) [Full Changelog](https://github.com/auth0/auth0-angular/compare/v1.6.0...v1.6.0) diff --git a/docs/assets/js/search.js b/docs/assets/js/search.js index 68f8a298..8b30d19e 100644 --- a/docs/assets/js/search.js +++ b/docs/assets/js/search.js @@ -704,185 +704,295 @@ window.searchData = { url: 'modules/auth_state.html', classes: 'tsd-kind-module', }, + { + id: 87, + kind: 128, + name: 'AuthState', + url: 'classes/auth_state.authstate.html', + classes: 'tsd-kind-class tsd-parent-kind-module', + parent: 'auth.state', + }, + { + id: 88, + kind: 512, + name: 'constructor', + url: 'classes/auth_state.authstate.html#constructor', + classes: 'tsd-kind-constructor tsd-parent-kind-class', + parent: 'auth.state.AuthState', + }, + { + id: 89, + kind: 1024, + name: 'isLoading$', + url: 'classes/auth_state.authstate.html#isloading_', + classes: 'tsd-kind-property tsd-parent-kind-class', + parent: 'auth.state.AuthState', + }, + { + id: 90, + kind: 1024, + name: 'isAuthenticated$', + url: 'classes/auth_state.authstate.html#isauthenticated_', + classes: 'tsd-kind-property tsd-parent-kind-class', + parent: 'auth.state.AuthState', + }, + { + id: 91, + kind: 1024, + name: 'user$', + url: 'classes/auth_state.authstate.html#user_', + classes: 'tsd-kind-property tsd-parent-kind-class', + parent: 'auth.state.AuthState', + }, + { + id: 92, + kind: 1024, + name: 'idTokenClaims$', + url: 'classes/auth_state.authstate.html#idtokenclaims_', + classes: 'tsd-kind-property tsd-parent-kind-class', + parent: 'auth.state.AuthState', + }, + { + id: 93, + kind: 1024, + name: 'error$', + url: 'classes/auth_state.authstate.html#error_', + classes: 'tsd-kind-property tsd-parent-kind-class', + parent: 'auth.state.AuthState', + }, + { + id: 94, + kind: 2048, + name: 'setIsLoading', + url: 'classes/auth_state.authstate.html#setisloading', + classes: 'tsd-kind-method tsd-parent-kind-class', + parent: 'auth.state.AuthState', + }, + { + id: 95, + kind: 2048, + name: 'refresh', + url: 'classes/auth_state.authstate.html#refresh', + classes: 'tsd-kind-method tsd-parent-kind-class', + parent: 'auth.state.AuthState', + }, + { + id: 96, + kind: 2048, + name: 'setAccessToken', + url: 'classes/auth_state.authstate.html#setaccesstoken', + classes: 'tsd-kind-method tsd-parent-kind-class', + parent: 'auth.state.AuthState', + }, + { + id: 97, + kind: 2048, + name: 'setError', + url: 'classes/auth_state.authstate.html#seterror', + classes: 'tsd-kind-method tsd-parent-kind-class', + parent: 'auth.state.AuthState', + }, ], index: { version: '2.3.9', fields: ['name', 'parent'], fieldVectors: [ - ['name/0', [0, 21.241, 1, 25.44]], + ['name/0', [0, 22.066, 1, 26.262]], ['parent/0', []], - ['name/1', [2, 40.909]], - ['parent/1', [0, 2.038, 1, 2.441]], - ['name/2', [3, 24.739]], - ['parent/2', [0, 2.038, 4, 2.441]], - ['name/3', [5, 40.909]], - ['parent/3', [0, 2.038, 4, 2.441]], - ['name/4', [6, 32.396]], + ['name/1', [2, 42.07]], + ['parent/1', [0, 2.127, 1, 2.532]], + ['name/2', [3, 24.652]], + ['parent/2', [0, 2.127, 4, 2.532]], + ['name/3', [5, 42.07]], + ['parent/3', [0, 2.127, 4, 2.532]], + ['name/4', [6, 33.562]], ['parent/4', []], - ['name/5', [7, 40.909]], - ['parent/5', [6, 3.146]], - ['name/6', [8, 40.909]], - ['parent/6', [9, 3.474]], - ['name/7', [3, 24.739]], - ['parent/7', [9, 3.474]], - ['name/8', [10, 40.909]], - ['parent/8', [6, 3.146]], - ['name/9', [11, 22.364]], + ['name/5', [7, 42.07]], + ['parent/5', [6, 3.27]], + ['name/6', [8, 42.07]], + ['parent/6', [9, 3.6]], + ['name/7', [3, 24.652]], + ['parent/7', [9, 3.6]], + ['name/8', [10, 42.07]], + ['parent/8', [6, 3.27]], + ['name/9', [11, 23.536]], ['parent/9', []], - ['name/10', [12, 40.909]], - ['parent/10', [11, 2.172]], - ['name/11', [13, 35.777]], - ['parent/11', [11, 2.172]], - ['name/12', [14, 35.777]], - ['parent/12', [15, 2.542]], - ['name/13', [16, 40.909]], - ['parent/13', [15, 2.542]], - ['name/14', [17, 40.909]], - ['parent/14', [15, 2.542]], - ['name/15', [18, 40.909]], - ['parent/15', [15, 2.542]], - ['name/16', [19, 40.909]], - ['parent/16', [15, 2.542]], - ['name/17', [20, 40.909]], - ['parent/17', [15, 2.542]], - ['name/18', [21, 40.909]], - ['parent/18', [11, 2.172]], - ['name/19', [22, 40.909]], - ['parent/19', [11, 2.172]], - ['name/20', [23, 40.909]], - ['parent/20', [24, 3.973]], - ['name/21', [25, 40.909]], - ['parent/21', [11, 2.172]], - ['name/22', [26, 40.909]], - ['parent/22', [27, 2.542]], - ['name/23', [28, 40.909]], - ['parent/23', [27, 2.542]], - ['name/24', [29, 35.777]], - ['parent/24', [27, 2.542]], - ['name/25', [30, 40.909]], - ['parent/25', [27, 2.542]], - ['name/26', [13, 35.777]], - ['parent/26', [27, 2.542]], - ['name/27', [31, 40.909]], - ['parent/27', [27, 2.542]], - ['name/28', [32, 40.909]], - ['parent/28', [11, 2.172]], - ['name/29', [33, 40.909]], - ['parent/29', [34, 1.47]], - ['name/30', [35, 40.909]], - ['parent/30', [34, 1.47]], - ['name/31', [36, 40.909]], - ['parent/31', [34, 1.47]], - ['name/32', [37, 40.909]], - ['parent/32', [34, 1.47]], - ['name/33', [38, 40.909]], - ['parent/33', [34, 1.47]], - ['name/34', [39, 40.909]], - ['parent/34', [34, 1.47]], - ['name/35', [40, 40.909]], - ['parent/35', [34, 1.47]], - ['name/36', [41, 40.909]], - ['parent/36', [34, 1.47]], - ['name/37', [42, 40.909]], - ['parent/37', [34, 1.47]], - ['name/38', [43, 40.909]], - ['parent/38', [34, 1.47]], - ['name/39', [44, 40.909]], - ['parent/39', [34, 1.47]], - ['name/40', [29, 35.777]], - ['parent/40', [34, 1.47]], - ['name/41', [45, 40.909]], - ['parent/41', [46, 3.973]], - ['name/42', [47, 40.909]], - ['parent/42', [34, 1.47]], - ['name/43', [48, 40.909]], - ['parent/43', [34, 1.47]], - ['name/44', [49, 40.909]], - ['parent/44', [34, 1.47]], - ['name/45', [50, 40.909]], - ['parent/45', [34, 1.47]], - ['name/46', [51, 40.909]], - ['parent/46', [34, 1.47]], - ['name/47', [52, 40.909]], - ['parent/47', [34, 1.47]], - ['name/48', [53, 40.909]], - ['parent/48', [34, 1.47]], - ['name/49', [54, 40.909]], - ['parent/49', [11, 2.172]], - ['name/50', [3, 24.739]], - ['parent/50', [55, 3.146]], - ['name/51', [56, 40.909]], - ['parent/51', [55, 3.146]], - ['name/52', [14, 35.777]], - ['parent/52', [55, 3.146]], - ['name/53', [57, 40.909]], - ['parent/53', [11, 2.172]], - ['name/54', [58, 35.777]], + ['name/10', [12, 42.07]], + ['parent/10', [11, 2.293]], + ['name/11', [13, 36.941]], + ['parent/11', [11, 2.293]], + ['name/12', [14, 36.941]], + ['parent/12', [15, 2.665]], + ['name/13', [16, 42.07]], + ['parent/13', [15, 2.665]], + ['name/14', [17, 42.07]], + ['parent/14', [15, 2.665]], + ['name/15', [18, 42.07]], + ['parent/15', [15, 2.665]], + ['name/16', [19, 42.07]], + ['parent/16', [15, 2.665]], + ['name/17', [20, 42.07]], + ['parent/17', [15, 2.665]], + ['name/18', [21, 42.07]], + ['parent/18', [11, 2.293]], + ['name/19', [22, 42.07]], + ['parent/19', [11, 2.293]], + ['name/20', [23, 42.07]], + ['parent/20', [24, 4.099]], + ['name/21', [25, 42.07]], + ['parent/21', [11, 2.293]], + ['name/22', [26, 42.07]], + ['parent/22', [27, 2.665]], + ['name/23', [28, 42.07]], + ['parent/23', [27, 2.665]], + ['name/24', [29, 36.941]], + ['parent/24', [27, 2.665]], + ['name/25', [30, 42.07]], + ['parent/25', [27, 2.665]], + ['name/26', [13, 36.941]], + ['parent/26', [27, 2.665]], + ['name/27', [31, 42.07]], + ['parent/27', [27, 2.665]], + ['name/28', [32, 42.07]], + ['parent/28', [11, 2.293]], + ['name/29', [33, 42.07]], + ['parent/29', [34, 1.59]], + ['name/30', [35, 42.07]], + ['parent/30', [34, 1.59]], + ['name/31', [36, 42.07]], + ['parent/31', [34, 1.59]], + ['name/32', [37, 42.07]], + ['parent/32', [34, 1.59]], + ['name/33', [38, 42.07]], + ['parent/33', [34, 1.59]], + ['name/34', [39, 42.07]], + ['parent/34', [34, 1.59]], + ['name/35', [40, 42.07]], + ['parent/35', [34, 1.59]], + ['name/36', [41, 42.07]], + ['parent/36', [34, 1.59]], + ['name/37', [42, 42.07]], + ['parent/37', [34, 1.59]], + ['name/38', [43, 42.07]], + ['parent/38', [34, 1.59]], + ['name/39', [44, 42.07]], + ['parent/39', [34, 1.59]], + ['name/40', [29, 36.941]], + ['parent/40', [34, 1.59]], + ['name/41', [45, 42.07]], + ['parent/41', [46, 4.099]], + ['name/42', [47, 42.07]], + ['parent/42', [34, 1.59]], + ['name/43', [48, 42.07]], + ['parent/43', [34, 1.59]], + ['name/44', [49, 42.07]], + ['parent/44', [34, 1.59]], + ['name/45', [50, 42.07]], + ['parent/45', [34, 1.59]], + ['name/46', [51, 42.07]], + ['parent/46', [34, 1.59]], + ['name/47', [52, 42.07]], + ['parent/47', [34, 1.59]], + ['name/48', [53, 42.07]], + ['parent/48', [34, 1.59]], + ['name/49', [54, 42.07]], + ['parent/49', [11, 2.293]], + ['name/50', [3, 24.652]], + ['parent/50', [55, 3.27]], + ['name/51', [56, 42.07]], + ['parent/51', [55, 3.27]], + ['name/52', [14, 36.941]], + ['parent/52', [55, 3.27]], + ['name/53', [57, 42.07]], + ['parent/53', [11, 2.293]], + ['name/54', [58, 36.941]], ['parent/54', []], - ['name/55', [59, 40.909]], - ['parent/55', [58, 3.474]], - ['name/56', [3, 24.739]], - ['parent/56', [60, 2.901]], - ['name/57', [61, 40.909]], - ['parent/57', [60, 2.901]], - ['name/58', [62, 40.909]], - ['parent/58', [60, 2.901]], - ['name/59', [63, 40.909]], - ['parent/59', [60, 2.901]], - ['name/60', [64, 35.777]], + ['name/55', [59, 42.07]], + ['parent/55', [58, 3.6]], + ['name/56', [3, 24.652]], + ['parent/56', [60, 3.025]], + ['name/57', [61, 42.07]], + ['parent/57', [60, 3.025]], + ['name/58', [62, 42.07]], + ['parent/58', [60, 3.025]], + ['name/59', [63, 42.07]], + ['parent/59', [60, 3.025]], + ['name/60', [64, 36.941]], ['parent/60', []], - ['name/61', [65, 40.909]], - ['parent/61', [64, 3.474]], - ['name/62', [3, 24.739]], - ['parent/62', [66, 3.474]], - ['name/63', [67, 40.909]], - ['parent/63', [66, 3.474]], - ['name/64', [68, 35.777]], + ['name/61', [65, 42.07]], + ['parent/61', [64, 3.6]], + ['name/62', [3, 24.652]], + ['parent/62', [66, 3.6]], + ['name/63', [67, 42.07]], + ['parent/63', [66, 3.6]], + ['name/64', [68, 36.941]], ['parent/64', []], - ['name/65', [69, 40.909]], - ['parent/65', [68, 3.474]], - ['name/66', [70, 40.909]], - ['parent/66', [71, 3.474]], - ['name/67', [3, 24.739]], - ['parent/67', [71, 3.474]], - ['name/68', [72, 35.777]], + ['name/65', [69, 42.07]], + ['parent/65', [68, 3.6]], + ['name/66', [70, 42.07]], + ['parent/66', [71, 3.6]], + ['name/67', [3, 24.652]], + ['parent/67', [71, 3.6]], + ['name/68', [72, 36.941]], ['parent/68', []], - ['name/69', [73, 40.909]], - ['parent/69', [72, 3.474]], - ['name/70', [3, 24.739]], - ['parent/70', [74, 1.633]], - ['name/71', [75, 40.909]], - ['parent/71', [74, 1.633]], - ['name/72', [76, 40.909]], - ['parent/72', [74, 1.633]], - ['name/73', [77, 40.909]], - ['parent/73', [74, 1.633]], - ['name/74', [78, 40.909]], - ['parent/74', [74, 1.633]], - ['name/75', [79, 40.909]], - ['parent/75', [74, 1.633]], - ['name/76', [80, 40.909]], - ['parent/76', [74, 1.633]], - ['name/77', [81, 40.909]], - ['parent/77', [74, 1.633]], - ['name/78', [82, 40.909]], - ['parent/78', [74, 1.633]], - ['name/79', [83, 40.909]], - ['parent/79', [74, 1.633]], - ['name/80', [84, 40.909]], - ['parent/80', [74, 1.633]], - ['name/81', [85, 40.909]], - ['parent/81', [74, 1.633]], - ['name/82', [86, 40.909]], - ['parent/82', [74, 1.633]], - ['name/83', [87, 40.909]], - ['parent/83', [74, 1.633]], - ['name/84', [88, 40.909]], - ['parent/84', [74, 1.633]], - ['name/85', [89, 40.909]], - ['parent/85', [74, 1.633]], - ['name/86', [90, 40.909]], + ['name/69', [73, 42.07]], + ['parent/69', [72, 3.6]], + ['name/70', [3, 24.652]], + ['parent/70', [74, 1.753]], + ['name/71', [75, 36.941]], + ['parent/71', [74, 1.753]], + ['name/72', [76, 36.941]], + ['parent/72', [74, 1.753]], + ['name/73', [77, 36.941]], + ['parent/73', [74, 1.753]], + ['name/74', [78, 36.941]], + ['parent/74', [74, 1.753]], + ['name/75', [79, 36.941]], + ['parent/75', [74, 1.753]], + ['name/76', [80, 42.07]], + ['parent/76', [74, 1.753]], + ['name/77', [81, 42.07]], + ['parent/77', [74, 1.753]], + ['name/78', [82, 42.07]], + ['parent/78', [74, 1.753]], + ['name/79', [83, 42.07]], + ['parent/79', [74, 1.753]], + ['name/80', [84, 42.07]], + ['parent/80', [74, 1.753]], + ['name/81', [85, 42.07]], + ['parent/81', [74, 1.753]], + ['name/82', [86, 42.07]], + ['parent/82', [74, 1.753]], + ['name/83', [87, 42.07]], + ['parent/83', [74, 1.753]], + ['name/84', [88, 42.07]], + ['parent/84', [74, 1.753]], + ['name/85', [89, 42.07]], + ['parent/85', [74, 1.753]], + ['name/86', [90, 36.941]], ['parent/86', []], + ['name/87', [91, 42.07]], + ['parent/87', [90, 3.6]], + ['name/88', [3, 24.652]], + ['parent/88', [92, 2.195]], + ['name/89', [75, 36.941]], + ['parent/89', [92, 2.195]], + ['name/90', [76, 36.941]], + ['parent/90', [92, 2.195]], + ['name/91', [77, 36.941]], + ['parent/91', [92, 2.195]], + ['name/92', [78, 36.941]], + ['parent/92', [92, 2.195]], + ['name/93', [79, 36.941]], + ['parent/93', [92, 2.195]], + ['name/94', [93, 42.07]], + ['parent/94', [92, 2.195]], + ['name/95', [94, 42.07]], + ['parent/95', [92, 2.195]], + ['name/96', [95, 42.07]], + ['parent/96', [92, 2.195]], + ['name/97', [96, 42.07]], + ['parent/97', [92, 2.195]], ], invertedIndex: [ ['__type', { _index: 29, name: { 24: {}, 40: {} }, parent: {} }], @@ -1019,7 +1129,26 @@ window.searchData = { }, }, ], - ['auth.state', { _index: 90, name: { 86: {} }, parent: {} }], + ['auth.state', { _index: 90, name: { 86: {} }, parent: { 87: {} } }], + [ + 'auth.state.authstate', + { + _index: 92, + name: {}, + parent: { + 88: {}, + 89: {}, + 90: {}, + 91: {}, + 92: {}, + 93: {}, + 94: {}, + 95: {}, + 96: {}, + 97: {}, + }, + }, + ], ['auth0clientfactory', { _index: 7, name: { 5: {} }, parent: {} }], ['auth0clientservice', { _index: 10, name: { 8: {} }, parent: {} }], ['authclientconfig', { _index: 54, name: { 49: {} }, parent: {} }], @@ -1033,6 +1162,7 @@ window.searchData = { { _index: 43, name: { 38: {} }, parent: {} }, ], ['authservice', { _index: 73, name: { 69: {} }, parent: {} }], + ['authstate', { _index: 91, name: { 87: {} }, parent: {} }], ['buildauthorizeurl', { _index: 88, name: { 84: {} }, parent: {} }], ['buildlogouturl', { _index: 89, name: { 85: {} }, parent: {} }], ['cache', { _index: 41, name: { 36: {} }, parent: {} }], @@ -1045,7 +1175,16 @@ window.searchData = { 'constructor', { _index: 3, - name: { 2: {}, 7: {}, 50: {}, 56: {}, 62: {}, 67: {}, 70: {} }, + name: { + 2: {}, + 7: {}, + 50: {}, + 56: {}, + 62: {}, + 67: {}, + 70: {}, + 88: {}, + }, parent: {}, }, ], @@ -1053,7 +1192,7 @@ window.searchData = { ['defaultscope', { _index: 45, name: { 41: {} }, parent: {} }], ['delete', { _index: 19, name: { 16: {} }, parent: {} }], ['domain', { _index: 33, name: { 29: {} }, parent: {} }], - ['error', { _index: 79, name: { 75: {} }, parent: {} }], + ['error', { _index: 79, name: { 75: {}, 93: {} }, parent: {} }], ['errorpath', { _index: 51, name: { 46: {} }, parent: {} }], ['forroot', { _index: 70, name: { 66: {} }, parent: {} }], ['get', { _index: 14, name: { 12: {}, 52: {} }, parent: {} }], @@ -1068,15 +1207,15 @@ window.searchData = { { _index: 25, name: { 21: {} }, parent: {} }, ], ['httpmethod', { _index: 13, name: { 11: {}, 26: {} }, parent: {} }], - ['idtokenclaims', { _index: 78, name: { 74: {} }, parent: {} }], + ['idtokenclaims', { _index: 78, name: { 74: {}, 92: {} }, parent: {} }], ['intercept', { _index: 67, name: { 63: {} }, parent: {} }], ['invitation', { _index: 53, name: { 48: {} }, parent: {} }], - ['isauthenticated', { _index: 76, name: { 72: {} }, parent: {} }], + ['isauthenticated', { _index: 76, name: { 72: {}, 90: {} }, parent: {} }], [ 'ishttpinterceptorrouteconfig', { _index: 12, name: { 10: {} }, parent: {} }, ], - ['isloading', { _index: 75, name: { 71: {} }, parent: {} }], + ['isloading', { _index: 75, name: { 71: {}, 89: {} }, parent: {} }], ['issuer', { _index: 35, name: { 30: {} }, parent: {} }], ['leeway', { _index: 39, name: { 34: {} }, parent: {} }], ['loginwithpopup', { _index: 83, name: { 79: {} }, parent: {} }], @@ -1095,13 +1234,17 @@ window.searchData = { ['post', { _index: 16, name: { 13: {} }, parent: {} }], ['put', { _index: 17, name: { 14: {} }, parent: {} }], ['redirecturi', { _index: 37, name: { 32: {} }, parent: {} }], + ['refresh', { _index: 94, name: { 95: {} }, parent: {} }], ['scope', { _index: 48, name: { 43: {} }, parent: {} }], ['set', { _index: 56, name: { 51: {} }, parent: {} }], + ['setaccesstoken', { _index: 95, name: { 96: {} }, parent: {} }], + ['seterror', { _index: 96, name: { 97: {} }, parent: {} }], + ['setisloading', { _index: 93, name: { 94: {} }, parent: {} }], ['skipredirectcallback', { _index: 38, name: { 33: {} }, parent: {} }], ['tokenoptions', { _index: 30, name: { 25: {} }, parent: {} }], ['uri', { _index: 26, name: { 22: {} }, parent: {} }], ['urimatcher', { _index: 28, name: { 23: {} }, parent: {} }], - ['user', { _index: 77, name: { 73: {} }, parent: {} }], + ['user', { _index: 77, name: { 73: {}, 91: {} }, parent: {} }], ['userefreshtokens', { _index: 42, name: { 37: {} }, parent: {} }], ], pipeline: [], diff --git a/docs/classes/abstract_navigator.abstractnavigator.html b/docs/classes/abstract_navigator.abstractnavigator.html index 13f7600d..94f1c0f8 100644 --- a/docs/classes/abstract_navigator.abstractnavigator.html +++ b/docs/classes/abstract_navigator.abstractnavigator.html @@ -162,7 +162,7 @@

constructor

  • Defined in abstract-navigator.ts:9
  • @@ -220,7 +220,7 @@

    navigateByUrl

  • Defined in abstract-navigator.ts:22
  • diff --git a/docs/classes/auth_client.auth0clientfactory.html b/docs/classes/auth_client.auth0clientfactory.html index b50a3aa2..698957e0 100644 --- a/docs/classes/auth_client.auth0clientfactory.html +++ b/docs/classes/auth_client.auth0clientfactory.html @@ -200,7 +200,7 @@

  • Defined in auth.client.ts:7
  • diff --git a/docs/classes/auth_config.authclientconfig.html b/docs/classes/auth_config.authclientconfig.html index 717aa606..15946128 100644 --- a/docs/classes/auth_config.authclientconfig.html +++ b/docs/classes/auth_config.authclientconfig.html @@ -216,7 +216,7 @@

    constructor

  • Defined in auth.config.ts:296
  • @@ -277,7 +277,7 @@

    get

  • Defined in auth.config.ts:315
  • @@ -330,7 +330,7 @@

    set

  • Defined in auth.config.ts:308
  • diff --git a/docs/classes/auth_guard.authguard.html b/docs/classes/auth_guard.authguard.html index 311f2361..3be33c93 100644 --- a/docs/classes/auth_guard.authguard.html +++ b/docs/classes/auth_guard.authguard.html @@ -181,7 +181,7 @@

    constructor

  • Defined in auth.guard.ts:18
  • @@ -244,7 +244,7 @@

    canActivate

  • Defined in auth.guard.ts:25
  • @@ -308,7 +308,7 @@

    canActivateChild

  • Defined in auth.guard.ts:32
  • @@ -372,7 +372,7 @@

    canLoad

  • Defined in auth.guard.ts:21
  • diff --git a/docs/classes/auth_interceptor.authhttpinterceptor.html b/docs/classes/auth_interceptor.authhttpinterceptor.html index 5fd5fb2b..3b3eddc6 100644 --- a/docs/classes/auth_interceptor.authhttpinterceptor.html +++ b/docs/classes/auth_interceptor.authhttpinterceptor.html @@ -154,7 +154,11 @@

    constructor

    >, auth0Client: default, authState: AuthStateAuthState): constructor
  • Defined in auth.interceptor.ts:31
  • @@ -200,7 +204,12 @@
  • authState: - AuthState + AuthState
  • @@ -255,7 +264,7 @@

    intercept

  • Defined in auth.interceptor.ts:38
  • diff --git a/docs/classes/auth_module.authmodule.html b/docs/classes/auth_module.authmodule.html index dcb0b392..51932514 100644 --- a/docs/classes/auth_module.authmodule.html +++ b/docs/classes/auth_module.authmodule.html @@ -204,7 +204,7 @@

  • Defined in auth.module.ts:14
  • diff --git a/docs/classes/auth_service.authservice.html b/docs/classes/auth_service.authservice.html index 8fadaa26..9cf9ac41 100644 --- a/docs/classes/auth_service.authservice.html +++ b/docs/classes/auth_service.authservice.html @@ -263,7 +263,11 @@

    constructor

    data-tsd-kind="Class" >AbstractNavigator, authState: AuthStateAuthState): constructor
  • Defined in auth.service.ts:81
  • @@ -326,7 +330,12 @@
  • authState: - AuthState + AuthState
  • @@ -366,7 +375,7 @@

  • Defined in auth.service.ts:81
  • @@ -403,7 +412,7 @@

  • Defined in auth.service.ts:75
  • @@ -443,7 +452,7 @@

  • Defined in auth.service.ts:70
  • @@ -481,7 +490,7 @@

  • Defined in auth.service.ts:60
  • @@ -520,7 +529,7 @@

  • Defined in auth.service.ts:54
  • @@ -559,7 +568,7 @@

  • Defined in auth.service.ts:65
  • @@ -604,7 +613,7 @@

    buildAuthorizeUrl

  • Defined in auth.service.ts:306
  • @@ -673,7 +682,7 @@

    buildLogoutUrl

  • Defined in auth.service.ts:319
  • @@ -743,7 +752,7 @@

    getAccessTokenSilently

  • Defined in auth.service.ts:221
  • @@ -837,7 +846,7 @@

    getAccessTokenWithPopup

  • Defined in auth.service.ts:247
  • @@ -905,7 +914,7 @@

    handleRedirectCallback

  • Defined in auth.service.ts:275
  • @@ -982,7 +991,7 @@

    loginWithPopup

  • Defined in auth.service.ts:158
  • @@ -1070,7 +1079,7 @@

    loginWithRedirect

  • Defined in auth.service.ts:137
  • @@ -1135,7 +1144,7 @@

    logout

  • Defined in auth.service.ts:184
  • @@ -1202,7 +1211,7 @@

    ngOnDestroy

  • Defined in auth.service.ts:120
  • diff --git a/docs/classes/auth_state.authstate.html b/docs/classes/auth_state.authstate.html new file mode 100644 index 00000000..55547ba5 --- /dev/null +++ b/docs/classes/auth_state.authstate.html @@ -0,0 +1,817 @@ + + + + + + AuthState | @auth0/auth0-angular + + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    Class AuthState

    +
    +
    +
    +
    +
    +
    +
    +
    +
    +

    Tracks the Authentication State for the SDK

    +
    +
    +
    +
    +

    Hierarchy

    +
      +
    • + AuthState +
    • +
    +
    +
    +

    Index

    +
    +
    +
    +

    Constructors

    + +
    +
    +

    Properties

    + +
    +
    +

    Methods

    + +
    +
    +
    +
    +
    +

    Constructors

    +
    + +

    constructor

    +
      +
    • + new AuthState(auth0Client: default): AuthState +
    • +
    + +
    +
    +
    +

    Properties

    +
    + +

    + Readonly error$ +

    +
    + error$: + Observable<Error> = ... +
    + +
    +
    +

    + Emits errors that occur during login, or when checking for + an active session on startup. +

    +
    +
    +
    +
    + +

    + Readonly + idTokenClaims$ +

    +
    + idTokenClaims$: + Observable<null | IdToken> = ... +
    + +
    +
    +

    + Emits ID token claims when authenticated, or null if not + authenticated. +

    +
    +
    +
    +
    + +

    + Readonly + isAuthenticated$ +

    +
    + isAuthenticated$: + Observable<boolean> = ... +
    + +
    +
    +

    + Emits boolean values indicating the authentication state of + the user. If true, it means a user has + authenticated. This depends on the value of + isLoading$, so there is no need to manually + check the loading state of the SDK. +

    +
    +
    +
    +
    + +

    + Readonly + isLoading$ +

    +
    + isLoading$: + Observable<boolean> = ... +
    + +
    +
    +

    + Emits boolean values indicating the loading state of the + SDK. +

    +
    +
    +
    +
    + +

    + Readonly user$ +

    +
    + user$: + Observable<undefined | null | User> = ... +
    + +
    +
    +

    + Emits details about the authenticated user, or null if not + authenticated. +

    +
    +
    +
    +
    +
    +

    Methods

    +
    + +

    refresh

    +
      +
    • + refresh(): void +
    • +
    +
      +
    • + +
      +
      +

      + Refresh the state to ensure the + isAuthenticated, user$ and + idTokenClaims$ reflect the most up-to-date + values from Auth0Client. +

      +
      +
      +

      + Returns void +

      +
    • +
    +
    +
    + +

    setAccessToken

    +
      +
    • + setAccessToken(accessToken: string): void +
    • +
    +
      +
    • + +
      +
      +

      + Update the access token, doing so will also refresh the + state. +

      +
      +
      +

      Parameters

      +
        +
      • +
        + accessToken: + string +
        +
        +

        The new Access Token

        +
        +
      • +
      +

      + Returns void +

      +
    • +
    +
    +
    + +

    setError

    +
      +
    • + setError(error: any): void +
    • +
    +
      +
    • + +
      +
      +

      + Emits the error in the error$ observable. +

      +
      +
      +

      Parameters

      +
        +
      • +
        + error: any +
        +
        +

        The new error

        +
        +
      • +
      +

      + Returns void +

      +
    • +
    +
    +
    + +

    setIsLoading

    +
      +
    • + setIsLoading(isLoading: boolean): void +
    • +
    +
      +
    • + +
      +
      +

      Update the isLoading state using the provided value

      +
      +
      +

      Parameters

      +
        +
      • +
        + isLoading: + boolean +
        +
        +

        The new value for isLoading

        +
        +
      • +
      +

      + Returns void +

      +
    • +
    +
    +
    +
    + +
    +
    + +
    + + + diff --git a/docs/enums/auth_config.httpmethod.html b/docs/enums/auth_config.httpmethod.html index fc442a51..ae5a3620 100644 --- a/docs/enums/auth_config.httpmethod.html +++ b/docs/enums/auth_config.httpmethod.html @@ -161,7 +161,7 @@

    Delete

  • Defined in auth.config.ts:17
  • @@ -182,7 +182,7 @@

    Get

  • Defined in auth.config.ts:13
  • @@ -203,7 +203,7 @@

    Head

  • Defined in auth.config.ts:18
  • @@ -224,7 +224,7 @@

    Patch

  • Defined in auth.config.ts:16
  • @@ -245,7 +245,7 @@

    Post

  • Defined in auth.config.ts:14
  • @@ -266,7 +266,7 @@

    Put

  • Defined in auth.config.ts:15
  • diff --git a/docs/interfaces/auth_config.authconfig.html b/docs/interfaces/auth_config.authconfig.html index 73b65030..f7088016 100644 --- a/docs/interfaces/auth_config.authconfig.html +++ b/docs/interfaces/auth_config.authconfig.html @@ -279,7 +279,7 @@

  • Defined in auth.config.ts:189
  • @@ -335,7 +335,7 @@

  • Defined in auth.config.ts:216
  • @@ -369,7 +369,7 @@

  • Defined in auth.config.ts:184
  • @@ -401,7 +401,7 @@

  • Defined in auth.config.ts:169
  • @@ -441,7 +441,7 @@

  • Defined in auth.config.ts:161
  • @@ -471,7 +471,7 @@

    clientId

  • Defined in auth.config.ts:121
  • @@ -497,7 +497,7 @@

    domain

  • Defined in auth.config.ts:111
  • @@ -534,7 +534,7 @@

  • Defined in auth.config.ts:228
  • @@ -574,7 +574,7 @@

  • Defined in auth.config.ts:222
  • @@ -606,7 +606,7 @@

  • Defined in auth.config.ts:243
  • @@ -638,7 +638,7 @@

  • Defined in auth.config.ts:116
  • @@ -669,7 +669,7 @@

  • Defined in auth.config.ts:155
  • @@ -704,7 +704,7 @@

  • Defined in auth.config.ts:204
  • @@ -737,7 +737,7 @@

  • Defined in auth.config.ts:236
  • @@ -771,7 +771,7 @@

  • Defined in auth.config.ts:130
  • @@ -806,7 +806,7 @@

  • Defined in auth.config.ts:211
  • @@ -842,7 +842,7 @@

  • Defined in auth.config.ts:148
  • @@ -891,7 +891,7 @@

  • Defined in auth.config.ts:178
  • diff --git a/docs/interfaces/auth_config.httpinterceptorconfig.html b/docs/interfaces/auth_config.httpinterceptorconfig.html index 1c0a4153..0ec2b807 100644 --- a/docs/interfaces/auth_config.httpinterceptorconfig.html +++ b/docs/interfaces/auth_config.httpinterceptorconfig.html @@ -141,7 +141,7 @@

    allowedList

  • Defined in auth.config.ts:43
  • diff --git a/docs/interfaces/auth_config.httpinterceptorrouteconfig.html b/docs/interfaces/auth_config.httpinterceptorrouteconfig.html index ec9b36ef..bbcc4bfb 100644 --- a/docs/interfaces/auth_config.httpinterceptorrouteconfig.html +++ b/docs/interfaces/auth_config.httpinterceptorrouteconfig.html @@ -167,7 +167,7 @@

  • Defined in auth.config.ts:99
  • @@ -203,7 +203,7 @@

  • Defined in auth.config.ts:92
  • @@ -237,7 +237,7 @@

  • Defined in auth.config.ts:83
  • @@ -268,7 +268,7 @@

  • Defined in auth.config.ts:65
  • @@ -329,7 +329,7 @@

  • Defined in auth.config.ts:77
  • diff --git a/docs/modules/auth_client.html b/docs/modules/auth_client.html index c9f6b1d9..00281d6a 100644 --- a/docs/modules/auth_client.html +++ b/docs/modules/auth_client.html @@ -138,7 +138,7 @@

  • Defined in auth.client.ts:31
  • diff --git a/docs/modules/auth_config.html b/docs/modules/auth_config.html index f6913fb5..e8ce2498 100644 --- a/docs/modules/auth_config.html +++ b/docs/modules/auth_config.html @@ -199,7 +199,7 @@

    ApiRouteDefinition

  • Defined in auth.config.ts:27
  • @@ -248,7 +248,7 @@

  • Defined in auth.config.ts:331
  • @@ -311,7 +311,7 @@

    isHttpInterceptorRouteConfig

  • Defined in auth.config.ts:33
  • diff --git a/docs/modules/auth_state.html b/docs/modules/auth_state.html index a8b1ffd4..d7b51f9a 100644 --- a/docs/modules/auth_state.html +++ b/docs/modules/auth_state.html @@ -80,7 +80,27 @@

    Module auth.state

    -
    +
    +
    +

    Index

    +
    +
    +
    +

    Classes

    + +
    +
    +
    +
    +
    diff --git a/projects/auth0-angular/package.json b/projects/auth0-angular/package.json index 38e8eb3c..5d462ca0 100644 --- a/projects/auth0-angular/package.json +++ b/projects/auth0-angular/package.json @@ -1,6 +1,6 @@ { "name": "@auth0/auth0-angular", - "version": "1.6.0", + "version": "1.6.1", "description": "Auth0 SDK for Angular Single Page Applications (SPA)", "keywords": [ "auth0", diff --git a/projects/auth0-angular/src/useragent.ts b/projects/auth0-angular/src/useragent.ts index 63fcf314..b56c3688 100644 --- a/projects/auth0-angular/src/useragent.ts +++ b/projects/auth0-angular/src/useragent.ts @@ -1 +1 @@ -export default { name: '@auth0/auth0-angular', version: '1.6.0' }; +export default { name: '@auth0/auth0-angular', version: '1.6.1' };