@rxap/oauth 19.0.4-dev.0 → 19.1.0-dev.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.
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html class="default" lang="en" data-base="."><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>@rxap/oauth - v19.0.4-dev.0</title><meta name="description" content="Documentation for @rxap/oauth"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script defer src="assets/main.js"></script><script async src="assets/icons.js" id="tsd-icons-script"></script><script async src="assets/search.js" id="tsd-search-script"></script><script async src="assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">@rxap/oauth - v19.0.4-dev.0</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><h1>@rxap/oauth - v19.0.4-dev.0</h1></div><div class="tsd-panel tsd-typography"><p>This package provides an authentication guard and service for Angular applications using OAuth 2.0 and OpenID Connect. It simplifies the integration of authentication flows, including sign-in, sign-out, and token management, with support for disabled authentication scenarios. The package also includes a provider function to streamline configuration.</p>
1
+ <!DOCTYPE html><html class="default" lang="en" data-base="."><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>@rxap/oauth - v19.1.0-dev.0</title><meta name="description" content="Documentation for @rxap/oauth"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script defer src="assets/main.js"></script><script async src="assets/icons.js" id="tsd-icons-script"></script><script async src="assets/search.js" id="tsd-search-script"></script><script async src="assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">@rxap/oauth - v19.1.0-dev.0</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><h1>@rxap/oauth - v19.1.0-dev.0</h1></div><div class="tsd-panel tsd-typography"><p>This package provides an authentication guard and service for Angular applications using OAuth 2.0 and OpenID Connect. It simplifies the integration of authentication flows, including sign-in, sign-out, and token management, with support for disabled authentication scenarios. The package also includes a provider function to streamline configuration.</p>
2
2
  <p><a href="https://www.npmjs.com/package/@rxap/oauth"><img src="https://img.shields.io/npm/v/@rxap/oauth?style=flat-square" alt="npm version"></a>
3
3
  <a href="https://commitizen.github.io/cz-cli/"><img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square" alt="commitizen friendly"></a>
4
4
  <a href="https://github.com/prettier/prettier"><img src="https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square" alt="styled with prettier"></a>
@@ -31,4 +31,4 @@
31
31
  <pre><code class="bash"><span class="hl-0">nx</span><span class="hl-1"> </span><span class="hl-2">g</span><span class="hl-1"> </span><span class="hl-2">@rxap/oauth:init</span>
32
32
  </code><button type="button">Copy</button></pre>
33
33
 
34
- </div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><a href="#installation"><span>Installation</span></a><a href="#generators"><span>Generators</span></a><ul><li><a href="#init"><span>init</span></a></li></ul></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="modules.html">@rxap/oauth - v19.0.4-dev.0</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
34
+ </div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><a href="#installation"><span>Installation</span></a><a href="#generators"><span>Generators</span></a><ul><li><a href="#init"><span>init</span></a></li></ul></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="modules.html">@rxap/oauth - v19.1.0-dev.0</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html class="default" lang="en" data-base="."><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>@rxap/oauth - v19.0.4-dev.0</title><meta name="description" content="Documentation for @rxap/oauth"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script defer src="assets/main.js"></script><script async src="assets/icons.js" id="tsd-icons-script"></script><script async src="assets/search.js" id="tsd-search-script"></script><script async src="assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">@rxap/oauth - v19.0.4-dev.0</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="modules.html">@rxap/oauth</a></li></ul><h1>@rxap/oauth - v19.0.4-dev.0</h1></div><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Classes"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg> Classes</h2></summary><dl class="tsd-member-summaries"><dt class="tsd-member-summary"><a id="authenticationservice" class="tsd-anchor"></a><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><a href="classes/AuthenticationService.html">AuthenticationService</a><a href="#authenticationservice" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd></dl></details><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Functions"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg> Functions</h2></summary><dl class="tsd-member-summaries"><dt class="tsd-member-summary"><a id="authenticationguard" class="tsd-anchor"></a><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="assets/icons.svg#icon-64"></use></svg><a href="functions/AuthenticationGuard.html">AuthenticationGuard</a><a href="#authenticationguard" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary"><a id="provideauth" class="tsd-anchor"></a><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="assets/icons.svg#icon-64"></use></svg><a href="functions/ProvideAuth.html">ProvideAuth</a><a href="#provideauth" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary"><a id="withauthconfig" class="tsd-anchor"></a><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="assets/icons.svg#icon-64"></use></svg><a href="functions/withAuthConfig.html">withAuthConfig</a><a href="#withauthconfig" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd></dl></details></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Classes"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>Classes</summary><div><a href="#authenticationservice" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><span>Authentication<wbr/>Service</span></a></div></details><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Functions"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>Functions</summary><div><a href="#authenticationguard" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="assets/icons.svg#icon-64"></use></svg><span>Authentication<wbr/>Guard</span></a><a href="#provideauth" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="assets/icons.svg#icon-64"></use></svg><span>Provide<wbr/>Auth</span></a><a href="#withauthconfig" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="assets/icons.svg#icon-64"></use></svg><span>with<wbr/>Auth<wbr/>Config</span></a></div></details></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="modules.html" class="current">@rxap/oauth - v19.0.4-dev.0</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
1
+ <!DOCTYPE html><html class="default" lang="en" data-base="."><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>@rxap/oauth - v19.1.0-dev.0</title><meta name="description" content="Documentation for @rxap/oauth"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script defer src="assets/main.js"></script><script async src="assets/icons.js" id="tsd-icons-script"></script><script async src="assets/search.js" id="tsd-search-script"></script><script async src="assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">@rxap/oauth - v19.1.0-dev.0</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="modules.html">@rxap/oauth</a></li></ul><h1>@rxap/oauth - v19.1.0-dev.0</h1></div><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Classes"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg> Classes</h2></summary><dl class="tsd-member-summaries"><dt class="tsd-member-summary"><a id="authenticationservice" class="tsd-anchor"></a><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><a href="classes/AuthenticationService.html">AuthenticationService</a><a href="#authenticationservice" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd></dl></details><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Functions"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg> Functions</h2></summary><dl class="tsd-member-summaries"><dt class="tsd-member-summary"><a id="authenticationguard" class="tsd-anchor"></a><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="assets/icons.svg#icon-64"></use></svg><a href="functions/AuthenticationGuard.html">AuthenticationGuard</a><a href="#authenticationguard" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary"><a id="provideauth" class="tsd-anchor"></a><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="assets/icons.svg#icon-64"></use></svg><a href="functions/ProvideAuth.html">ProvideAuth</a><a href="#provideauth" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary"><a id="withauthconfig" class="tsd-anchor"></a><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="assets/icons.svg#icon-64"></use></svg><a href="functions/withAuthConfig.html">withAuthConfig</a><a href="#withauthconfig" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd></dl></details></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Classes"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>Classes</summary><div><a href="#authenticationservice" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><span>Authentication<wbr/>Service</span></a></div></details><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Functions"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>Functions</summary><div><a href="#authenticationguard" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="assets/icons.svg#icon-64"></use></svg><span>Authentication<wbr/>Guard</span></a><a href="#provideauth" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="assets/icons.svg#icon-64"></use></svg><span>Provide<wbr/>Auth</span></a><a href="#withauthconfig" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="assets/icons.svg#icon-64"></use></svg><span>with<wbr/>Auth<wbr/>Config</span></a></div></details></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="modules.html" class="current">@rxap/oauth - v19.1.0-dev.0</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
@@ -1,4 +1,4 @@
1
- **@rxap/oauth v19.0.4-dev.0**
1
+ **@rxap/oauth v19.1.0-dev.0**
2
2
 
3
3
  ***
4
4
 
@@ -1,4 +1,4 @@
1
- [**@rxap/oauth v19.0.4-dev.0**](../README.md)
1
+ [**@rxap/oauth v19.1.0-dev.0**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: AuthenticationService
8
8
 
9
- Defined in: [authentication.service.ts:35](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/oauth/src/lib/authentication.service.ts#L35)
9
+ Defined in: [authentication.service.ts:35](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/oauth/src/lib/authentication.service.ts#L35)
10
10
 
11
11
  ## Implements
12
12
 
@@ -18,7 +18,7 @@ Defined in: [authentication.service.ts:35](https://gitlab.com/rxap/packages/-/bl
18
18
 
19
19
  > **new AuthenticationService**(`oauthService`, `authConfig`, `authenticationAccessToken`, `isAuthDisabled`): [`AuthenticationService`](AuthenticationService.md)
20
20
 
21
- Defined in: [authentication.service.ts:45](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/oauth/src/lib/authentication.service.ts#L45)
21
+ Defined in: [authentication.service.ts:45](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/oauth/src/lib/authentication.service.ts#L45)
22
22
 
23
23
  #### Parameters
24
24
 
@@ -48,7 +48,7 @@ Defined in: [authentication.service.ts:45](https://gitlab.com/rxap/packages/-/bl
48
48
 
49
49
  > **events$**: `Observable`\<`AuthenticationEvent`\> = `EMPTY`
50
50
 
51
- Defined in: [authentication.service.ts:36](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/oauth/src/lib/authentication.service.ts#L36)
51
+ Defined in: [authentication.service.ts:36](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/oauth/src/lib/authentication.service.ts#L36)
52
52
 
53
53
  #### Implementation of
54
54
 
@@ -60,7 +60,7 @@ Defined in: [authentication.service.ts:36](https://gitlab.com/rxap/packages/-/bl
60
60
 
61
61
  > `readonly` **isAuthenticated$**: `BehaviorSubject`\<`null` \| `boolean`\>
62
62
 
63
- Defined in: [authentication.service.ts:37](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/oauth/src/lib/authentication.service.ts#L37)
63
+ Defined in: [authentication.service.ts:37](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/oauth/src/lib/authentication.service.ts#L37)
64
64
 
65
65
  #### Implementation of
66
66
 
@@ -72,7 +72,7 @@ Defined in: [authentication.service.ts:37](https://gitlab.com/rxap/packages/-/bl
72
72
 
73
73
  > **init**(): `void`
74
74
 
75
- Defined in: [authentication.service.ts:71](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/oauth/src/lib/authentication.service.ts#L71)
75
+ Defined in: [authentication.service.ts:71](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/oauth/src/lib/authentication.service.ts#L71)
76
76
 
77
77
  #### Returns
78
78
 
@@ -84,7 +84,7 @@ Defined in: [authentication.service.ts:71](https://gitlab.com/rxap/packages/-/bl
84
84
 
85
85
  > **isAuthenticated**(): `Promise`\<`boolean`\>
86
86
 
87
- Defined in: [authentication.service.ts:153](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/oauth/src/lib/authentication.service.ts#L153)
87
+ Defined in: [authentication.service.ts:153](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/oauth/src/lib/authentication.service.ts#L153)
88
88
 
89
89
  #### Returns
90
90
 
@@ -100,7 +100,7 @@ Defined in: [authentication.service.ts:153](https://gitlab.com/rxap/packages/-/b
100
100
 
101
101
  > **signIn**(): `void`
102
102
 
103
- Defined in: [authentication.service.ts:134](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/oauth/src/lib/authentication.service.ts#L134)
103
+ Defined in: [authentication.service.ts:134](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/oauth/src/lib/authentication.service.ts#L134)
104
104
 
105
105
  #### Returns
106
106
 
@@ -112,7 +112,7 @@ Defined in: [authentication.service.ts:134](https://gitlab.com/rxap/packages/-/b
112
112
 
113
113
  > **signOut**(): `Promise`\<`void`\>
114
114
 
115
- Defined in: [authentication.service.ts:123](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/oauth/src/lib/authentication.service.ts#L123)
115
+ Defined in: [authentication.service.ts:123](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/oauth/src/lib/authentication.service.ts#L123)
116
116
 
117
117
  #### Returns
118
118
 
@@ -1,4 +1,4 @@
1
- [**@rxap/oauth v19.0.4-dev.0**](../README.md)
1
+ [**@rxap/oauth v19.1.0-dev.0**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **AuthenticationGuard**(`route`, `state`): `Promise`\<`boolean`\>
10
10
 
11
- Defined in: [authentication-guard.ts:12](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/oauth/src/lib/authentication-guard.ts#L12)
11
+ Defined in: [authentication-guard.ts:12](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/oauth/src/lib/authentication-guard.ts#L12)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -1,4 +1,4 @@
1
- [**@rxap/oauth v19.0.4-dev.0**](../README.md)
1
+ [**@rxap/oauth v19.1.0-dev.0**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **ProvideAuth**(...`withConfigs`): `Provider`[]
10
10
 
11
- Defined in: [provide-auth.ts:9](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/oauth/src/lib/provide-auth.ts#L9)
11
+ Defined in: [provide-auth.ts:9](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/oauth/src/lib/provide-auth.ts#L9)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -1,4 +1,4 @@
1
- [**@rxap/oauth v19.0.4-dev.0**](../README.md)
1
+ [**@rxap/oauth v19.1.0-dev.0**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **withAuthConfig**(`config`): `Provider`
10
10
 
11
- Defined in: [provide-auth.ts:20](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/oauth/src/lib/provide-auth.ts#L20)
11
+ Defined in: [provide-auth.ts:20](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/oauth/src/lib/provide-auth.ts#L20)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -1,8 +1,8 @@
1
- [**@rxap/oauth v19.0.4-dev.0**](README.md)
1
+ [**@rxap/oauth v19.1.0-dev.0**](README.md)
2
2
 
3
3
  ***
4
4
 
5
- # @rxap/oauth v19.0.4-dev.0
5
+ # @rxap/oauth v19.1.0-dev.0
6
6
 
7
7
  ## Classes
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Class: AuthenticationService
4
4
 
5
- Defined in: [authentication.service.ts:35](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/oauth/src/lib/authentication.service.ts#L35)
5
+ Defined in: [authentication.service.ts:35](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/oauth/src/lib/authentication.service.ts#L35)
6
6
 
7
7
  ## Implements
8
8
 
@@ -14,7 +14,7 @@ Defined in: [authentication.service.ts:35](https://gitlab.com/rxap/packages/-/bl
14
14
 
15
15
  > **new AuthenticationService**(`oauthService`, `authConfig`, `authenticationAccessToken`, `isAuthDisabled`): [`AuthenticationService`](../wiki/Class.AuthenticationService)
16
16
 
17
- Defined in: [authentication.service.ts:45](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/oauth/src/lib/authentication.service.ts#L45)
17
+ Defined in: [authentication.service.ts:45](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/oauth/src/lib/authentication.service.ts#L45)
18
18
 
19
19
  #### Parameters
20
20
 
@@ -44,7 +44,7 @@ Defined in: [authentication.service.ts:45](https://gitlab.com/rxap/packages/-/bl
44
44
 
45
45
  > **events$**: `Observable`\<`AuthenticationEvent`\> = `EMPTY`
46
46
 
47
- Defined in: [authentication.service.ts:36](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/oauth/src/lib/authentication.service.ts#L36)
47
+ Defined in: [authentication.service.ts:36](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/oauth/src/lib/authentication.service.ts#L36)
48
48
 
49
49
  #### Implementation of
50
50
 
@@ -56,7 +56,7 @@ Defined in: [authentication.service.ts:36](https://gitlab.com/rxap/packages/-/bl
56
56
 
57
57
  > `readonly` **isAuthenticated$**: `BehaviorSubject`\<`null` \| `boolean`\>
58
58
 
59
- Defined in: [authentication.service.ts:37](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/oauth/src/lib/authentication.service.ts#L37)
59
+ Defined in: [authentication.service.ts:37](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/oauth/src/lib/authentication.service.ts#L37)
60
60
 
61
61
  #### Implementation of
62
62
 
@@ -68,7 +68,7 @@ Defined in: [authentication.service.ts:37](https://gitlab.com/rxap/packages/-/bl
68
68
 
69
69
  > **init**(): `void`
70
70
 
71
- Defined in: [authentication.service.ts:71](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/oauth/src/lib/authentication.service.ts#L71)
71
+ Defined in: [authentication.service.ts:71](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/oauth/src/lib/authentication.service.ts#L71)
72
72
 
73
73
  #### Returns
74
74
 
@@ -80,7 +80,7 @@ Defined in: [authentication.service.ts:71](https://gitlab.com/rxap/packages/-/bl
80
80
 
81
81
  > **isAuthenticated**(): `Promise`\<`boolean`\>
82
82
 
83
- Defined in: [authentication.service.ts:153](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/oauth/src/lib/authentication.service.ts#L153)
83
+ Defined in: [authentication.service.ts:153](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/oauth/src/lib/authentication.service.ts#L153)
84
84
 
85
85
  #### Returns
86
86
 
@@ -96,7 +96,7 @@ Defined in: [authentication.service.ts:153](https://gitlab.com/rxap/packages/-/b
96
96
 
97
97
  > **signIn**(): `void`
98
98
 
99
- Defined in: [authentication.service.ts:134](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/oauth/src/lib/authentication.service.ts#L134)
99
+ Defined in: [authentication.service.ts:134](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/oauth/src/lib/authentication.service.ts#L134)
100
100
 
101
101
  #### Returns
102
102
 
@@ -108,7 +108,7 @@ Defined in: [authentication.service.ts:134](https://gitlab.com/rxap/packages/-/b
108
108
 
109
109
  > **signOut**(): `Promise`\<`void`\>
110
110
 
111
- Defined in: [authentication.service.ts:123](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/oauth/src/lib/authentication.service.ts#L123)
111
+ Defined in: [authentication.service.ts:123](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/oauth/src/lib/authentication.service.ts#L123)
112
112
 
113
113
  #### Returns
114
114
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **AuthenticationGuard**(`route`, `state`): `Promise`\<`boolean`\>
6
6
 
7
- Defined in: [authentication-guard.ts:12](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/oauth/src/lib/authentication-guard.ts#L12)
7
+ Defined in: [authentication-guard.ts:12](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/oauth/src/lib/authentication-guard.ts#L12)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **ProvideAuth**(...`withConfigs`): `Provider`[]
6
6
 
7
- Defined in: [provide-auth.ts:9](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/oauth/src/lib/provide-auth.ts#L9)
7
+ Defined in: [provide-auth.ts:9](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/oauth/src/lib/provide-auth.ts#L9)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **withAuthConfig**(`config`): `Provider`
6
6
 
7
- Defined in: [provide-auth.ts:20](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/oauth/src/lib/provide-auth.ts#L20)
7
+ Defined in: [provide-auth.ts:20](https://gitlab.com/rxap/packages/-/blob/c440f5cccebab3281a30a4b253e4e1fc490fe1e4/packages/angular/oauth/src/lib/provide-auth.ts#L20)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -1,4 +1,4 @@
1
- # @rxap/oauth v19.0.4-dev.0
1
+ # @rxap/oauth v19.1.0-dev.0
2
2
 
3
3
  ## Classes
4
4
 
@@ -112,10 +112,10 @@ class AuthenticationService {
112
112
  isAuthenticated() {
113
113
  return firstValueFrom(this.isAuthenticated$.pipe(isDefined()));
114
114
  }
115
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: AuthenticationService, deps: [{ token: i1.OAuthService }, { token: AUTH_CONFIG, optional: true }, { token: RXAP_AUTHENTICATION_ACCESS_TOKEN }, { token: RXAP_AUTHENTICATION_DEACTIVATED }], target: i0.ɵɵFactoryTarget.Injectable }); }
116
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: AuthenticationService }); }
115
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: AuthenticationService, deps: [{ token: i1.OAuthService }, { token: AUTH_CONFIG, optional: true }, { token: RXAP_AUTHENTICATION_ACCESS_TOKEN }, { token: RXAP_AUTHENTICATION_DEACTIVATED }], target: i0.ɵɵFactoryTarget.Injectable }); }
116
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: AuthenticationService }); }
117
117
  }
118
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: AuthenticationService, decorators: [{
118
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: AuthenticationService, decorators: [{
119
119
  type: Injectable
120
120
  }], ctorParameters: () => [{ type: i1.OAuthService }, { type: i1.AuthConfig, decorators: [{
121
121
  type: Optional
@@ -1 +1 @@
1
- {"version":3,"file":"rxap-oauth.mjs","sources":["../../../../../packages/angular/oauth/src/lib/authentication.service.ts","../../../../../packages/angular/oauth/src/lib/authentication-guard.ts","../../../../../packages/angular/oauth/src/lib/provide-auth.ts","../../../../../packages/angular/oauth/src/index.ts","../../../../../packages/angular/oauth/src/rxap-oauth.ts"],"sourcesContent":["import {\n Inject,\n Injectable,\n Optional,\n} from '@angular/core';\nimport {\n AuthenticationAccessToken,\n AuthenticationEvent,\n AuthenticationEventType,\n IAuthenticationService,\n RXAP_AUTHENTICATION_ACCESS_TOKEN,\n RXAP_AUTHENTICATION_DEACTIVATED,\n} from '@rxap/authentication';\nimport { isDefined } from '@rxap/rxjs';\nimport {\n AUTH_CONFIG,\n AuthConfig,\n OAuthService,\n} from 'angular-oauth2-oidc';\nimport { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\nimport {\n BehaviorSubject,\n distinctUntilChanged,\n EMPTY,\n firstValueFrom,\n Observable,\n startWith,\n Subject,\n} from 'rxjs';\nimport { map } from 'rxjs/operators';\n\nconst JONE_DOE_JWT = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c';\n\n@Injectable()\nexport class AuthenticationService implements IAuthenticationService {\n events$: Observable<AuthenticationEvent> = EMPTY;\n public readonly isAuthenticated$ = new BehaviorSubject<boolean | null>(null);\n\n /**\n * Is only used when authentication is disabled to emit the events\n * @private\n */\n private readonly _events$ = new Subject<AuthenticationEvent>();\n\n constructor(\n private readonly oauthService: OAuthService,\n @Optional()\n @Inject(AUTH_CONFIG)\n private readonly authConfig: AuthConfig,\n @Inject(RXAP_AUTHENTICATION_ACCESS_TOKEN)\n private readonly authenticationAccessToken: BehaviorSubject<AuthenticationAccessToken | null>,\n @Inject(RXAP_AUTHENTICATION_DEACTIVATED)\n private readonly isAuthDisabled: boolean,\n ) {\n if (this.isAuthDisabled) {\n this.events$ = this._events$.asObservable();\n this.linkEventsAndIsAuthenticated();\n this._events$.next({\n type: AuthenticationEventType.OnAuthSuccess,\n payload: null,\n });\n this.authenticationAccessToken.next({\n token: JONE_DOE_JWT,\n valid: true,\n });\n } else {\n this.init();\n }\n }\n\n init() {\n if (this.authConfig) {\n this.oauthService.configure(this.authConfig);\n }\n this.events$ = this.oauthService.events.pipe(\n map(event => {\n switch (true) {\n case [ 'token_received', 'token_refreshed', 'silently_refreshed' ].includes(event.type):\n this.authenticationAccessToken.next({\n token: this.oauthService.getAccessToken(),\n valid: this.oauthService.hasValidAccessToken(),\n });\n return {\n type: AuthenticationEventType.OnAuthSuccess,\n payload: event,\n };\n case event.type.endsWith('_error') ||\n [ 'silent_refresh_timeout', 'invalid_nonce_in_state' ].includes(event.type):\n this.authenticationAccessToken.next(null);\n return {\n type: AuthenticationEventType.OnAuthError,\n payload: event,\n };\n case [ 'token_expires', 'logout', 'session_terminated' ].includes(event.type):\n this.authenticationAccessToken.next(null);\n return {\n type: AuthenticationEventType.OnLogout,\n payload: event,\n };\n default:\n console.warn('Unhandled event', event);\n return null;\n }\n }),\n isDefined(),\n );\n this.linkEventsAndIsAuthenticated();\n\n // Use setStorage to use sessionStorage or another implementation of the TS-type Storage\n // instead of localStorage\n this.oauthService.setStorage(sessionStorage);\n\n if (this.oauthService.silentRefreshRedirectUri) {\n this.oauthService.setupAutomaticSilentRefresh();\n }\n\n this.oauthService.tokenValidationHandler = new JwksValidationHandler();\n this.oauthService.loadDiscoveryDocumentAndTryLogin().then(status => {\n this.isAuthenticated$.next(status);\n });\n }\n\n async signOut(): Promise<void> {\n if (this.isAuthDisabled) {\n this._events$.next({\n type: AuthenticationEventType.OnLogout,\n payload: null,\n });\n } else {\n this.oauthService.logOut();\n }\n }\n\n signIn() {\n if (this.isAuthDisabled) {\n this._events$.next({\n type: AuthenticationEventType.OnAuthSuccess,\n payload: null,\n });\n } else {\n this.oauthService.initLoginFlow();\n }\n }\n\n private linkEventsAndIsAuthenticated() {\n this.events$.pipe(\n map(event => event ? event.type === AuthenticationEventType.OnAuthSuccess : null),\n distinctUntilChanged(),\n startWith(null),\n ).subscribe(this.isAuthenticated$);\n }\n\n isAuthenticated(): Promise<boolean> {\n return firstValueFrom(this.isAuthenticated$.pipe(isDefined()));\n }\n\n}\n","import { inject } from '@angular/core';\nimport {\n ActivatedRouteSnapshot,\n RouterStateSnapshot,\n} from '@angular/router';\nimport {\n RXAP_AUTHENTICATION_DEACTIVATED,\n RxapAuthenticationService,\n} from '@rxap/authentication';\nimport { AuthenticationService } from './authentication.service';\n\nexport async function AuthenticationGuard(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean> {\n\n const isAuthDisabled = inject(RXAP_AUTHENTICATION_DEACTIVATED, { optional: true }) ?? false;\n\n if (isAuthDisabled) {\n console.warn('Authentication is disabled!');\n return true;\n }\n\n const authService = inject(RxapAuthenticationService);\n\n if (!(authService instanceof AuthenticationService)) {\n throw new Error(\n 'The RxapAuthenticationService must be an instance of AuthenticationService. Ensure the ProvideAuth() function is used in the application config.');\n }\n\n if (await authService.isAuthenticated()) {\n return true;\n }\n\n authService.signIn();\n return false;\n\n}\n","import { Provider } from '@angular/core';\nimport { RxapAuthenticationService } from '@rxap/authentication';\nimport {\n AUTH_CONFIG,\n AuthConfig,\n} from 'angular-oauth2-oidc';\nimport { AuthenticationService } from './authentication.service';\n\nexport function ProvideAuth(...withConfigs: Array<Provider | Provider[]>): Provider[] {\n return [\n AuthenticationService,\n {\n provide: RxapAuthenticationService,\n useExisting: AuthenticationService,\n },\n ...withConfigs.flat(),\n ];\n}\n\nexport function withAuthConfig(config: AuthConfig): Provider {\n return {\n provide: AUTH_CONFIG,\n useValue: config,\n };\n}\n","// region \nexport * from './lib/authentication-guard';\nexport * from './lib/authentication.service';\nexport * from './lib/provide-auth';\n// endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AA+BA,MAAM,YAAY,GAAG,6JAA6J;MAGrK,qBAAqB,CAAA;AAUhC,IAAA,WAAA,CACmB,YAA0B,EAG1B,UAAsB,EAEtB,yBAA4E,EAE5E,cAAuB,EAAA;QAPvB,IAAY,CAAA,YAAA,GAAZ,YAAY;QAGZ,IAAU,CAAA,UAAA,GAAV,UAAU;QAEV,IAAyB,CAAA,yBAAA,GAAzB,yBAAyB;QAEzB,IAAc,CAAA,cAAA,GAAd,cAAc;QAjBjC,IAAO,CAAA,OAAA,GAAoC,KAAK;AAChC,QAAA,IAAA,CAAA,gBAAgB,GAAG,IAAI,eAAe,CAAiB,IAAI,CAAC;AAE5E;;;AAGG;AACc,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,OAAO,EAAuB;AAY5D,QAAA,IAAI,IAAI,CAAC,cAAc,EAAE;YACvB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE;YAC3C,IAAI,CAAC,4BAA4B,EAAE;AACnC,YAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;gBACjB,IAAI,EAAE,uBAAuB,CAAC,aAAa;AAC3C,gBAAA,OAAO,EAAE,IAAI;AACd,aAAA,CAAC;AACF,YAAA,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC;AAClC,gBAAA,KAAK,EAAE,YAAY;AACnB,gBAAA,KAAK,EAAE,IAAI;AACZ,aAAA,CAAC;;aACG;YACL,IAAI,CAAC,IAAI,EAAE;;;IAIf,IAAI,GAAA;AACF,QAAA,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,IAAI,CAAC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e,EAAE,EAAE;AACvC,QAAA,OAAO,IAAI;;IAGb,WAAW,CAAC,MAAM,EAAE;AACpB,IAAA,OAAO,KAAK;AAEd;;AC1BgB,SAAA,WAAW,CAAC,GAAG,WAAyC,EAAA;IACtE,OAAO;QACL,qBAAqB;AACrB,QAAA;AACE,YAAA,OAAO,EAAE,yBAAyB;AAClC,YAAA,WAAW,EAAE,qBAAqB;AACnC,SAAA;QACD,GAAG,WAAW,CAAC,IAAI,EAAE;KACtB;AACH;AAEM,SAAU,cAAc,CAAC,MAAkB,EAAA;IAC/C,OAAO;AACL,QAAA,OAAO,EAAE,WAAW;AACpB,QAAA,QAAQ,EAAE,MAAM;KACjB;AACH;;ACxBA;AAIA;;ACJA;;AAEG;;;;"}
1
+ {"version":3,"file":"rxap-oauth.mjs","sources":["../../../../../packages/angular/oauth/src/lib/authentication.service.ts","../../../../../packages/angular/oauth/src/lib/authentication-guard.ts","../../../../../packages/angular/oauth/src/lib/provide-auth.ts","../../../../../packages/angular/oauth/src/index.ts","../../../../../packages/angular/oauth/src/rxap-oauth.ts"],"sourcesContent":["import {\n Inject,\n Injectable,\n Optional,\n} from '@angular/core';\nimport {\n AuthenticationAccessToken,\n AuthenticationEvent,\n AuthenticationEventType,\n IAuthenticationService,\n RXAP_AUTHENTICATION_ACCESS_TOKEN,\n RXAP_AUTHENTICATION_DEACTIVATED,\n} from '@rxap/authentication';\nimport { isDefined } from '@rxap/rxjs';\nimport {\n AUTH_CONFIG,\n AuthConfig,\n OAuthService,\n} from 'angular-oauth2-oidc';\nimport { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\nimport {\n BehaviorSubject,\n distinctUntilChanged,\n EMPTY,\n firstValueFrom,\n Observable,\n startWith,\n Subject,\n} from 'rxjs';\nimport { map } from 'rxjs/operators';\n\nconst JONE_DOE_JWT = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c';\n\n@Injectable()\nexport class AuthenticationService implements IAuthenticationService {\n events$: Observable<AuthenticationEvent> = EMPTY;\n public readonly isAuthenticated$ = new BehaviorSubject<boolean | null>(null);\n\n /**\n * Is only used when authentication is disabled to emit the events\n * @private\n */\n private readonly _events$ = new Subject<AuthenticationEvent>();\n\n constructor(\n private readonly oauthService: OAuthService,\n @Optional()\n @Inject(AUTH_CONFIG)\n private readonly authConfig: AuthConfig,\n @Inject(RXAP_AUTHENTICATION_ACCESS_TOKEN)\n private readonly authenticationAccessToken: BehaviorSubject<AuthenticationAccessToken | null>,\n @Inject(RXAP_AUTHENTICATION_DEACTIVATED)\n private readonly isAuthDisabled: boolean,\n ) {\n if (this.isAuthDisabled) {\n this.events$ = this._events$.asObservable();\n this.linkEventsAndIsAuthenticated();\n this._events$.next({\n type: AuthenticationEventType.OnAuthSuccess,\n payload: null,\n });\n this.authenticationAccessToken.next({\n token: JONE_DOE_JWT,\n valid: true,\n });\n } else {\n this.init();\n }\n }\n\n init() {\n if (this.authConfig) {\n this.oauthService.configure(this.authConfig);\n }\n this.events$ = this.oauthService.events.pipe(\n map(event => {\n switch (true) {\n case [ 'token_received', 'token_refreshed', 'silently_refreshed' ].includes(event.type):\n this.authenticationAccessToken.next({\n token: this.oauthService.getAccessToken(),\n valid: this.oauthService.hasValidAccessToken(),\n });\n return {\n type: AuthenticationEventType.OnAuthSuccess,\n payload: event,\n };\n case event.type.endsWith('_error') ||\n [ 'silent_refresh_timeout', 'invalid_nonce_in_state' ].includes(event.type):\n this.authenticationAccessToken.next(null);\n return {\n type: AuthenticationEventType.OnAuthError,\n payload: event,\n };\n case [ 'token_expires', 'logout', 'session_terminated' ].includes(event.type):\n this.authenticationAccessToken.next(null);\n return {\n type: AuthenticationEventType.OnLogout,\n payload: event,\n };\n default:\n console.warn('Unhandled event', event);\n return null;\n }\n }),\n isDefined(),\n );\n this.linkEventsAndIsAuthenticated();\n\n // Use setStorage to use sessionStorage or another implementation of the TS-type Storage\n // instead of localStorage\n this.oauthService.setStorage(sessionStorage);\n\n if (this.oauthService.silentRefreshRedirectUri) {\n this.oauthService.setupAutomaticSilentRefresh();\n }\n\n this.oauthService.tokenValidationHandler = new JwksValidationHandler();\n this.oauthService.loadDiscoveryDocumentAndTryLogin().then(status => {\n this.isAuthenticated$.next(status);\n });\n }\n\n async signOut(): Promise<void> {\n if (this.isAuthDisabled) {\n this._events$.next({\n type: AuthenticationEventType.OnLogout,\n payload: null,\n });\n } else {\n this.oauthService.logOut();\n }\n }\n\n signIn() {\n if (this.isAuthDisabled) {\n this._events$.next({\n type: AuthenticationEventType.OnAuthSuccess,\n payload: null,\n });\n } else {\n this.oauthService.initLoginFlow();\n }\n }\n\n private linkEventsAndIsAuthenticated() {\n this.events$.pipe(\n map(event => event ? event.type === AuthenticationEventType.OnAuthSuccess : null),\n distinctUntilChanged(),\n startWith(null),\n ).subscribe(this.isAuthenticated$);\n }\n\n isAuthenticated(): Promise<boolean> {\n return firstValueFrom(this.isAuthenticated$.pipe(isDefined()));\n }\n\n}\n","import { inject } from '@angular/core';\nimport {\n ActivatedRouteSnapshot,\n RouterStateSnapshot,\n} from '@angular/router';\nimport {\n RXAP_AUTHENTICATION_DEACTIVATED,\n RxapAuthenticationService,\n} from '@rxap/authentication';\nimport { AuthenticationService } from './authentication.service';\n\nexport async function AuthenticationGuard(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean> {\n\n const isAuthDisabled = inject(RXAP_AUTHENTICATION_DEACTIVATED, { optional: true }) ?? false;\n\n if (isAuthDisabled) {\n console.warn('Authentication is disabled!');\n return true;\n }\n\n const authService = inject(RxapAuthenticationService);\n\n if (!(authService instanceof AuthenticationService)) {\n throw new Error(\n 'The RxapAuthenticationService must be an instance of AuthenticationService. Ensure the ProvideAuth() function is used in the application config.');\n }\n\n if (await authService.isAuthenticated()) {\n return true;\n }\n\n authService.signIn();\n return false;\n\n}\n","import { Provider } from '@angular/core';\nimport { RxapAuthenticationService } from '@rxap/authentication';\nimport {\n AUTH_CONFIG,\n AuthConfig,\n} from 'angular-oauth2-oidc';\nimport { AuthenticationService } from './authentication.service';\n\nexport function ProvideAuth(...withConfigs: Array<Provider | Provider[]>): Provider[] {\n return [\n AuthenticationService,\n {\n provide: RxapAuthenticationService,\n useExisting: AuthenticationService,\n },\n ...withConfigs.flat(),\n ];\n}\n\nexport function withAuthConfig(config: AuthConfig): Provider {\n return {\n provide: AUTH_CONFIG,\n useValue: config,\n };\n}\n","// region \nexport * from './lib/authentication-guard';\nexport * from './lib/authentication.service';\nexport * from './lib/provide-auth';\n// endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AA+BA,MAAM,YAAY,GAAG,6JAA6J;MAGrK,qBAAqB,CAAA;AAUhC,IAAA,WAAA,CACmB,YAA0B,EAG1B,UAAsB,EAEtB,yBAA4E,EAE5E,cAAuB,EAAA;QAPvB,IAAY,CAAA,YAAA,GAAZ,YAAY;QAGZ,IAAU,CAAA,UAAA,GAAV,UAAU;QAEV,IAAyB,CAAA,yBAAA,GAAzB,yBAAyB;QAEzB,IAAc,CAAA,cAAA,GAAd,cAAc;QAjBjC,IAAO,CAAA,OAAA,GAAoC,KAAK;AAChC,QAAA,IAAA,CAAA,gBAAgB,GAAG,IAAI,eAAe,CAAiB,IAAI,CAAC;AAE5E;;;AAGG;AACc,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,OAAO,EAAuB;AAY5D,QAAA,IAAI,IAAI,CAAC,cAAc,EAAE;YACvB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE;YAC3C,IAAI,CAAC,4BAA4B,EAAE;AACnC,YAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;gBACjB,IAAI,EAAE,uBAAuB,CAAC,aAAa;AAC3C,gBA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ClB,QAAA,OAAO,CAAC,IAAI,CAAC,6BAA6B,CAAC;AAC3C,QAAA,OAAO,IAAI;;AAGb,IAAA,MAAM,WAAW,GAAG,MAAM,CAAC,yBAAyB,CAAC;AAErD,IAAA,IAAI,EAAE,WAAW,YAAY,qBAAqB,CAAC,EAAE;AACnD,QAAA,MAAM,IAAI,KAAK,CACb,kJAAkJ,CAAC;;AAGvJ,IAAA,IAAI,MAAM,WAAW,CAAC,eAAe,EAAE,EAAE;AACvC,QAAA,OAAO,IAAI;;IAGb,WAAW,CAAC,MAAM,EAAE;AACpB,IAAA,OAAO,KAAK;AAEd;;AC1BgB,SAAA,WAAW,CAAC,GAAG,WAAyC,EAAA;IACtE,OAAO;QACL,qBAAqB;AACrB,QAAA;AACE,YAAA,OAAO,EAAE,yBAAyB;AAClC,YAAA,WAAW,EAAE,qBAAqB;AACnC,SAAA;QACD,GAAG,WAAW,CAAC,IAAI,EAAE;KACtB;AACH;AAEM,SAAU,cAAc,CAAC,MAAkB,EAAA;IAC/C,OAAO;AACL,QAAA,OAAO,EAAE,WAAW;AACpB,QAAA,QAAQ,EAAE,MAAM;KACjB;AACH;;ACxBA;AAIA;;ACJA;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "19.0.4-dev.0",
2
+ "version": "19.1.0-dev.0",
3
3
  "name": "@rxap/oauth",
4
4
  "description": "This package provides an authentication guard and service for Angular applications using OAuth 2.0 and OpenID Connect. It simplifies the integration of authentication flows, including sign-in, sign-out, and token management, with support for disabled authentication scenarios. The package also includes a provider function to streamline configuration.\n",
5
5
  "license": "GPL-3.0-or-later",
@@ -10,8 +10,8 @@
10
10
  "peerDependencies": {
11
11
  "@angular/core": "^19.2.1",
12
12
  "@angular/router": "^19.2.1",
13
- "@rxap/authentication": "^19.0.3",
14
- "@rxap/rxjs": "^1.1.15",
13
+ "@rxap/authentication": "^19.1.0-dev.0",
14
+ "@rxap/rxjs": "^1.1.17-dev.0",
15
15
  "angular-oauth2-oidc": "^15.0.1",
16
16
  "angular-oauth2-oidc-jwks": "^15.0.1",
17
17
  "rxjs": "^7.8.1"
@@ -39,31 +39,31 @@
39
39
  "packageGroup": [
40
40
  {
41
41
  "package": "@angular/common",
42
- "version": "19.2.1"
42
+ "version": "19.2.16"
43
43
  },
44
44
  {
45
45
  "package": "@angular/core",
46
- "version": "19.2.1"
46
+ "version": "19.2.16"
47
47
  },
48
48
  {
49
49
  "package": "@angular/platform-browser",
50
- "version": "19.2.1"
50
+ "version": "19.2.16"
51
51
  },
52
52
  {
53
53
  "package": "@angular/router",
54
- "version": "19.2.1"
54
+ "version": "19.2.16"
55
55
  },
56
56
  {
57
57
  "package": "@rxap/authentication",
58
- "version": "19.0.3"
58
+ "version": "19.1.0-dev.0"
59
59
  },
60
60
  {
61
61
  "package": "@rxap/rxjs",
62
- "version": "1.1.15"
62
+ "version": "1.1.17-dev.0"
63
63
  },
64
64
  {
65
65
  "package": "@rxap/utilities",
66
- "version": "16.4.3"
66
+ "version": "16.5.1-dev.1"
67
67
  }
68
68
  ]
69
69
  },
@@ -78,7 +78,6 @@
78
78
  },
79
79
  "schematics": "./generators.json",
80
80
  "sideEffects": false,
81
- "gitHead": "e4552670b179901abc7ce57cc3ff490ac705b867",
82
81
  "module": "fesm2022/rxap-oauth.mjs",
83
82
  "typings": "index.d.ts",
84
83
  "exports": {