Skip to content

Commit

Permalink
Release v2.0.1 (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck authored Jan 25, 2023
1 parent 438fad7 commit ef69dc5
Show file tree
Hide file tree
Showing 23 changed files with 89 additions and 104 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Change Log

## [v2.0.1](https://github.com/auth0/auth0-angular/tree/v2.0.1) (2023-01-25)

[Full Changelog](https://github.com/auth0/auth0-angular/compare/v2.0.0...v2.0.1)

**Fixed**

- Ensure AuthConfigService is exported before AuthClientConfig [\#413](https://github.com/auth0/auth0-angular/pull/413) ([frederikprijck](https://github.com/frederikprijck))

## [v2.0.0](https://github.com/auth0/auth0-angular/tree/v2.0.0) (2023-01-19)

[Full Changelog](https://github.com/auth0/auth0-angular/compare/v1.11.0...v2.0.0)
Expand Down
13 changes: 2 additions & 11 deletions docs/assets/highlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@
--dark-hl-6: #569cd6;
--light-hl-7: #267f99;
--dark-hl-7: #4ec9b0;
--light-hl-8: #000000;
--dark-hl-8: #c8c8c8;
--light-hl-9: #0070c1;
--dark-hl-9: #4fc1ff;
--light-hl-8: #0070c1;
--dark-hl-8: #4fc1ff;
--light-code-background: #ffffff;
--dark-code-background: #1e1e1e;
}
Expand All @@ -34,7 +32,6 @@
--hl-6: var(--light-hl-6);
--hl-7: var(--light-hl-7);
--hl-8: var(--light-hl-8);
--hl-9: var(--light-hl-9);
--code-background: var(--light-code-background);
}
}
Expand All @@ -50,7 +47,6 @@
--hl-6: var(--dark-hl-6);
--hl-7: var(--dark-hl-7);
--hl-8: var(--dark-hl-8);
--hl-9: var(--dark-hl-9);
--code-background: var(--dark-code-background);
}
}
Expand All @@ -65,7 +61,6 @@
--hl-6: var(--light-hl-6);
--hl-7: var(--light-hl-7);
--hl-8: var(--light-hl-8);
--hl-9: var(--light-hl-9);
--code-background: var(--light-code-background);
}

Expand All @@ -79,7 +74,6 @@
--hl-6: var(--dark-hl-6);
--hl-7: var(--dark-hl-7);
--hl-8: var(--dark-hl-8);
--hl-9: var(--dark-hl-9);
--code-background: var(--dark-code-background);
}

Expand Down Expand Up @@ -110,9 +104,6 @@
.hl-8 {
color: var(--hl-8);
}
.hl-9 {
color: var(--hl-9);
}
pre,
code {
background: var(--code-background);
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/classes/Auth0ClientFactory.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h4>Hierarchy</h4>
<li>
Defined in
<a
href="https://github.com/auth0/auth0-angular/blob/014575f/projects/auth0-angular/src/lib/auth.client.ts#L6"
href="https://github.com/auth0/auth0-angular/blob/438fad7/projects/auth0-angular/src/lib/auth.client.ts#L6"
>projects/auth0-angular/src/lib/auth.client.ts:6</a
>
</li>
Expand Down Expand Up @@ -355,7 +355,7 @@ <h4 class="tsd-returns-title">
<li>
Defined in
<a
href="https://github.com/auth0/auth0-angular/blob/014575f/projects/auth0-angular/src/lib/auth.client.ts#L7"
href="https://github.com/auth0/auth0-angular/blob/438fad7/projects/auth0-angular/src/lib/auth.client.ts#L7"
>projects/auth0-angular/src/lib/auth.client.ts:7</a
>
</li>
Expand Down
30 changes: 8 additions & 22 deletions docs/classes/AuthClientConfig.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,20 +79,6 @@
</ul>
<h1>Class AuthClientConfig</h1>
</div>
<section class="tsd-panel tsd-comment">
<div class="tsd-comment tsd-typography">
<p>
Gets and sets configuration for the internal Auth0 client. This
can be used to provide configuration outside of using
AuthModule.forRoot, i.e. from a factory provided by
APP_INITIALIZER.
</p>

<h3>Usage</h3>
<pre><code class="language-js"><span class="hl-5">// app.module.ts</span><br/><span class="hl-5">// ---------------------------</span><br/><span class="hl-2">import</span><span class="hl-0"> { </span><span class="hl-3">AuthModule</span><span class="hl-0">, </span><span class="hl-3">AuthClientConfig</span><span class="hl-0"> } </span><span class="hl-2">from</span><span class="hl-0"> </span><span class="hl-1">&#39;@auth0/auth0-angular&#39;</span><span class="hl-0">;</span><br/><br/><span class="hl-5">// Provide an initializer function that returns a Promise</span><br/><span class="hl-6">function</span><span class="hl-0"> </span><span class="hl-4">configInitializer</span><span class="hl-0">(</span><br/><span class="hl-0"> </span><span class="hl-3">http</span><span class="hl-0">: </span><span class="hl-7">HttpClient</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-3">config</span><span class="hl-0">: </span><span class="hl-7">AuthClientConfig</span><br/><span class="hl-0">) {</span><br/><span class="hl-0"> </span><span class="hl-2">return</span><span class="hl-0"> () </span><span class="hl-6">=&gt;</span><br/><span class="hl-0"> </span><span class="hl-3">http</span><br/><span class="hl-0"> .</span><span class="hl-4">get</span><span class="hl-0">(</span><span class="hl-1">&#39;/config&#39;</span><span class="hl-0">)</span><br/><span class="hl-0"> .</span><span class="hl-4">toPromise</span><span class="hl-0">()</span><br/><span class="hl-0"> .</span><span class="hl-4">then</span><span class="hl-0">((</span><span class="hl-3">loadedConfig</span><span class="hl-0">: </span><span class="hl-7">any</span><span class="hl-0">) </span><span class="hl-6">=&gt;</span><span class="hl-0"> </span><span class="hl-3">config</span><span class="hl-0">.</span><span class="hl-4">set</span><span class="hl-0">(</span><span class="hl-3">loadedConfig</span><span class="hl-0">)); </span><span class="hl-5">// Set the config that was loaded asynchronously here</span><br/><span class="hl-0">}</span><br/><br/><span class="hl-5">// Provide APP_INITIALIZER with this function. Note that there is no config passed to AuthModule.forRoot</span><br/><span class="hl-8">imports</span><span class="hl-0">: [</span><br/><span class="hl-0"> </span><span class="hl-5">// other imports..</span><br/><br/><span class="hl-0"> </span><span class="hl-3">HttpClientModule</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-3">AuthModule</span><span class="hl-0">.</span><span class="hl-4">forRoot</span><span class="hl-0">(), </span><span class="hl-5">//&lt;- don&#39;t pass any config here</span><br/><span class="hl-0">],</span><br/><span class="hl-8">providers</span><span class="hl-0">: [</span><br/><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-3">provide:</span><span class="hl-0"> </span><span class="hl-9">APP_INITIALIZER</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-3">useFactory:</span><span class="hl-0"> </span><span class="hl-3">configInitializer</span><span class="hl-0">, </span><span class="hl-5">// &lt;- pass your initializer function here</span><br/><span class="hl-0"> </span><span class="hl-3">deps:</span><span class="hl-0"> [</span><span class="hl-3">HttpClient</span><span class="hl-0">, </span><span class="hl-3">AuthClientConfig</span><span class="hl-0">],</span><br/><span class="hl-0"> </span><span class="hl-3">multi:</span><span class="hl-0"> </span><span class="hl-6">true</span><span class="hl-0">,</span><br/><span class="hl-0"> },</span><br/><span class="hl-0">],</span>
</code></pre>
</div>
</section>
<section class="tsd-panel tsd-hierarchy">
<h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
Expand All @@ -104,8 +90,8 @@ <h4>Hierarchy</h4>
<li>
Defined in
<a
href="https://github.com/auth0/auth0-angular/blob/014575f/projects/auth0-angular/src/lib/auth.config.ts#L198"
>projects/auth0-angular/src/lib/auth.config.ts:198</a
href="https://github.com/auth0/auth0-angular/blob/438fad7/projects/auth0-angular/src/lib/auth.config.ts#L214"
>projects/auth0-angular/src/lib/auth.config.ts:214</a
>
</li>
</ul>
Expand Down Expand Up @@ -321,8 +307,8 @@ <h4 class="tsd-returns-title">
<li>
Defined in
<a
href="https://github.com/auth0/auth0-angular/blob/014575f/projects/auth0-angular/src/lib/auth.config.ts#L201"
>projects/auth0-angular/src/lib/auth.config.ts:201</a
href="https://github.com/auth0/auth0-angular/blob/438fad7/projects/auth0-angular/src/lib/auth.config.ts#L217"
>projects/auth0-angular/src/lib/auth.config.ts:217</a
>
</li>
</ul>
Expand Down Expand Up @@ -403,8 +389,8 @@ <h4 class="tsd-returns-title">
<li>
Defined in
<a
href="https://github.com/auth0/auth0-angular/blob/014575f/projects/auth0-angular/src/lib/auth.config.ts#L219"
>projects/auth0-angular/src/lib/auth.config.ts:219</a
href="https://github.com/auth0/auth0-angular/blob/438fad7/projects/auth0-angular/src/lib/auth.config.ts#L235"
>projects/auth0-angular/src/lib/auth.config.ts:235</a
>
</li>
</ul>
Expand Down Expand Up @@ -498,8 +484,8 @@ <h4 class="tsd-returns-title">
<li>
Defined in
<a
href="https://github.com/auth0/auth0-angular/blob/014575f/projects/auth0-angular/src/lib/auth.config.ts#L212"
>projects/auth0-angular/src/lib/auth.config.ts:212</a
href="https://github.com/auth0/auth0-angular/blob/438fad7/projects/auth0-angular/src/lib/auth.config.ts#L228"
>projects/auth0-angular/src/lib/auth.config.ts:228</a
>
</li>
</ul>
Expand Down
10 changes: 5 additions & 5 deletions docs/classes/AuthGuard.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ <h4>Implements</h4>
<li>
Defined in
<a
href="https://github.com/auth0/auth0-angular/blob/014575f/projects/auth0-angular/src/lib/auth.guard.ts#L18"
href="https://github.com/auth0/auth0-angular/blob/438fad7/projects/auth0-angular/src/lib/auth.guard.ts#L18"
>projects/auth0-angular/src/lib/auth.guard.ts:18</a
>
</li>
Expand Down Expand Up @@ -339,7 +339,7 @@ <h4 class="tsd-returns-title">
<li>
Defined in
<a
href="https://github.com/auth0/auth0-angular/blob/014575f/projects/auth0-angular/src/lib/auth.guard.ts#L19"
href="https://github.com/auth0/auth0-angular/blob/438fad7/projects/auth0-angular/src/lib/auth.guard.ts#L19"
>projects/auth0-angular/src/lib/auth.guard.ts:19</a
>
</li>
Expand Down Expand Up @@ -443,7 +443,7 @@ <h4 class="tsd-returns-title">
<li>
Defined in
<a
href="https://github.com/auth0/auth0-angular/blob/014575f/projects/auth0-angular/src/lib/auth.guard.ts#L25"
href="https://github.com/auth0/auth0-angular/blob/438fad7/projects/auth0-angular/src/lib/auth.guard.ts#L25"
>projects/auth0-angular/src/lib/auth.guard.ts:25</a
>
</li>
Expand Down Expand Up @@ -545,7 +545,7 @@ <h4 class="tsd-returns-title">
<li>
Defined in
<a
href="https://github.com/auth0/auth0-angular/blob/014575f/projects/auth0-angular/src/lib/auth.guard.ts#L32"
href="https://github.com/auth0/auth0-angular/blob/438fad7/projects/auth0-angular/src/lib/auth.guard.ts#L32"
>projects/auth0-angular/src/lib/auth.guard.ts:32</a
>
</li>
Expand Down Expand Up @@ -638,7 +638,7 @@ <h4 class="tsd-returns-title">
<li>
Defined in
<a
href="https://github.com/auth0/auth0-angular/blob/014575f/projects/auth0-angular/src/lib/auth.guard.ts#L21"
href="https://github.com/auth0/auth0-angular/blob/438fad7/projects/auth0-angular/src/lib/auth.guard.ts#L21"
>projects/auth0-angular/src/lib/auth.guard.ts:21</a
>
</li>
Expand Down
6 changes: 3 additions & 3 deletions docs/classes/AuthHttpInterceptor.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ <h4>Implements</h4>
<li>
Defined in
<a
href="https://github.com/auth0/auth0-angular/blob/014575f/projects/auth0-angular/src/lib/auth.interceptor.ts#L39"
href="https://github.com/auth0/auth0-angular/blob/438fad7/projects/auth0-angular/src/lib/auth.interceptor.ts#L39"
>projects/auth0-angular/src/lib/auth.interceptor.ts:39</a
>
</li>
Expand Down Expand Up @@ -354,7 +354,7 @@ <h4 class="tsd-returns-title">
<li>
Defined in
<a
href="https://github.com/auth0/auth0-angular/blob/014575f/projects/auth0-angular/src/lib/auth.interceptor.ts#L40"
href="https://github.com/auth0/auth0-angular/blob/438fad7/projects/auth0-angular/src/lib/auth.interceptor.ts#L40"
>projects/auth0-angular/src/lib/auth.interceptor.ts:40</a
>
</li>
Expand Down Expand Up @@ -467,7 +467,7 @@ <h4 class="tsd-returns-title">
<li>
Defined in
<a
href="https://github.com/auth0/auth0-angular/blob/014575f/projects/auth0-angular/src/lib/auth.interceptor.ts#L47"
href="https://github.com/auth0/auth0-angular/blob/438fad7/projects/auth0-angular/src/lib/auth.interceptor.ts#L47"
>projects/auth0-angular/src/lib/auth.interceptor.ts:47</a
>
</li>
Expand Down
4 changes: 2 additions & 2 deletions docs/classes/AuthModule.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h4>Hierarchy</h4>
<li>
Defined in
<a
href="https://github.com/auth0/auth0-angular/blob/014575f/projects/auth0-angular/src/lib/auth.module.ts#L8"
href="https://github.com/auth0/auth0-angular/blob/438fad7/projects/auth0-angular/src/lib/auth.module.ts#L8"
>projects/auth0-angular/src/lib/auth.module.ts:8</a
>
</li>
Expand Down Expand Up @@ -375,7 +375,7 @@ <h4 class="tsd-returns-title">
<li>
Defined in
<a
href="https://github.com/auth0/auth0-angular/blob/014575f/projects/auth0-angular/src/lib/auth.module.ts#L15"
href="https://github.com/auth0/auth0-angular/blob/438fad7/projects/auth0-angular/src/lib/auth.module.ts#L15"
>projects/auth0-angular/src/lib/auth.module.ts:15</a
>
</li>
Expand Down
Loading

0 comments on commit ef69dc5

Please sign in to comment.