Skip to content

Commit

Permalink
Merge pull request #876 from auth0/release/v2.0.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjmcgrath authored Oct 21, 2022
2 parents 29e36b7 + 8bdc74f commit fd701fd
Show file tree
Hide file tree
Showing 52 changed files with 234 additions and 269 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2.1
orbs:
ship: auth0/[email protected].2
ship: auth0/[email protected].4
jobs:
build:
docker:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## [v2.0.0-beta.1](https://github.com/auth0/nextjs-auth0/tree/v2.0.0-beta.1) (2022-10-21)
[Full Changelog](https://github.com/auth0/nextjs-auth0/compare/v2.0.0-beta.0...v2.0.0-beta.1)

**Fixed**
- status getter is not enumerable so needs to be added to NextResponse [\#875](https://github.com/auth0/nextjs-auth0/pull/875) ([adamjmcgrath](https://github.com/adamjmcgrath))

## [v2.0.0-beta.0](https://github.com/auth0/nextjs-auth0/tree/v2.0.0-beta.0) (2022-10-11)

[Full Changelog](https://github.com/auth0/nextjs-auth0/compare/v1.9.1...v2.0.0-beta.0)
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/js/search.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/classes/frontend_use_user.requesterror.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ <h3>constructor</h3>
<aside class="tsd-sources">
<p>Overrides Error.constructor</p>
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/frontend/use-user.tsx#L46">src/frontend/use-user.tsx:46</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/frontend/use-user.tsx#L46">src/frontend/use-user.tsx:46</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -144,7 +144,7 @@ <h3>status</h3>
<div class="tsd-signature tsd-kind-icon">status<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/frontend/use-user.tsx#L46">src/frontend/use-user.tsx:46</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/frontend/use-user.tsx#L46">src/frontend/use-user.tsx:46</a></li>
</ul>
</aside>
</section>
Expand Down
18 changes: 9 additions & 9 deletions docs/classes/session.sessioncache.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/session/cache.ts#L13">src/session/cache.ts:13</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/session/cache.ts#L13">src/session/cache.ts:13</a></li>
</ul>
</aside>
<h4 class="tsd-type-parameters-title">Type parameters</h4>
Expand Down Expand Up @@ -168,7 +168,7 @@ <h3>create</h3>
<aside class="tsd-sources">
<p>Implementation of ISessionCache.create</p>
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/session/cache.ts#L35">src/session/cache.ts:35</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/session/cache.ts#L35">src/session/cache.ts:35</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down Expand Up @@ -198,7 +198,7 @@ <h3>delete</h3>
<aside class="tsd-sources">
<p>Implementation of ISessionCache.delete</p>
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/session/cache.ts#L40">src/session/cache.ts:40</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/session/cache.ts#L40">src/session/cache.ts:40</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -225,7 +225,7 @@ <h3>from<wbr>Token<wbr>Set</h3>
<aside class="tsd-sources">
<p>Implementation of ISessionCache.fromTokenSet</p>
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/session/cache.ts#L69">src/session/cache.ts:69</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/session/cache.ts#L69">src/session/cache.ts:69</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -248,7 +248,7 @@ <h3>get</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/session/cache.ts#L64">src/session/cache.ts:64</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/session/cache.ts#L64">src/session/cache.ts:64</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -275,7 +275,7 @@ <h3>get<wbr>IdToken</h3>
<aside class="tsd-sources">
<p>Implementation of ISessionCache.getIdToken</p>
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/session/cache.ts#L52">src/session/cache.ts:52</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/session/cache.ts#L52">src/session/cache.ts:52</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -302,7 +302,7 @@ <h3>is<wbr>Authenticated</h3>
<aside class="tsd-sources">
<p>Implementation of ISessionCache.isAuthenticated</p>
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/session/cache.ts#L46">src/session/cache.ts:46</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/session/cache.ts#L46">src/session/cache.ts:46</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -328,7 +328,7 @@ <h3>save</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/session/cache.ts#L31">src/session/cache.ts:31</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/session/cache.ts#L31">src/session/cache.ts:31</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -354,7 +354,7 @@ <h3>set</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/session/cache.ts#L58">src/session/cache.ts:58</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/session/cache.ts#L58">src/session/cache.ts:58</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down
14 changes: 7 additions & 7 deletions docs/classes/session_session.default.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/session/session.ts#L53">src/session/session.ts:53</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/session/session.ts#L53">src/session/session.ts:53</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -148,7 +148,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> access<wbr>Token</h3>
<div class="tsd-signature tsd-kind-icon">access<wbr>Token<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/session/session.ts#L33">src/session/session.ts:33</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/session/session.ts#L33">src/session/session.ts:33</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -163,7 +163,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> access<wbr>Token<wbr>
<div class="tsd-signature tsd-kind-icon">access<wbr>Token<wbr>Expires<wbr>At<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/session/session.ts#L43">src/session/session.ts:43</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/session/session.ts#L43">src/session/session.ts:43</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -178,7 +178,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> access<wbr>Token<wbr>
<div class="tsd-signature tsd-kind-icon">access<wbr>Token<wbr>Scope<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/session/session.ts#L38">src/session/session.ts:38</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/session/session.ts#L38">src/session/session.ts:38</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -193,7 +193,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> id<wbr>Token</h3>
<div class="tsd-signature tsd-kind-icon">id<wbr>Token<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/session/session.ts#L28">src/session/session.ts:28</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/session/session.ts#L28">src/session/session.ts:28</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -208,7 +208,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> refresh<wbr>Token</h3
<div class="tsd-signature tsd-kind-icon">refresh<wbr>Token<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/session/session.ts#L51">src/session/session.ts:51</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/session/session.ts#L51">src/session/session.ts:51</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -225,7 +225,7 @@ <h3>user</h3>
<div class="tsd-signature tsd-kind-icon">user<span class="tsd-signature-symbol">:</span> <a href="../interfaces/session_session.claims.html" class="tsd-signature-type" data-tsd-kind="Interface">Claims</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/session/session.ts#L23">src/session/session.ts:23</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/session/session.ts#L23">src/session/session.ts:23</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
19 changes: 9 additions & 10 deletions docs/classes/utils_errors.accesstokenerror.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ <h3>constructor</h3>
<aside class="tsd-sources">
<p>Overrides <a href="utils_errors.autherror.html">AuthError</a>.<a href="utils_errors.autherror.html#constructor">constructor</a></p>
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/utils/errors.ts#L106">src/utils/errors.ts:106</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/utils/errors.ts#L98">src/utils/errors.ts:98</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -158,15 +158,17 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> <span class="tsd-flag
<aside class="tsd-sources">
<p>Inherited from <a href="utils_errors.autherror.html">AuthError</a>.<a href="utils_errors.autherror.html#cause">cause</a></p>
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/utils/errors.ts#L65">src/utils/errors.ts:65</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/utils/errors.ts#L57">src/utils/errors.ts:57</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>The underlying error, if any.</p>
</div>
<p><strong>IMPORTANT</strong> This underlying error is <strong>not</strong> escaped in any way,
so do <strong>not</strong> render it without escaping it first!</p>
<p><strong>IMPORTANT</strong> When this error is from the Identity Provider ({@Link IdentityProviderError}) it can contain user
input and is only escaped using basic escaping for putting untrusted data directly into the HTML body.</p>
<p>You should <strong>not</strong> render this error without using a templating engine that will properly escape it for other
HTML contexts first.</p>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
Expand All @@ -176,7 +178,7 @@ <h3><span class="tsd-flag ts-flagReadonly">Readonly</span> code</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="utils_errors.autherror.html">AuthError</a>.<a href="utils_errors.autherror.html#code">code</a></p>
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/utils/errors.ts#L52">src/utils/errors.ts:52</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/utils/errors.ts#L41">src/utils/errors.ts:41</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -195,7 +197,7 @@ <h3><span class="tsd-flag ts-flagReadonly">Readonly</span> name</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="utils_errors.autherror.html">AuthError</a>.<a href="utils_errors.autherror.html#name">name</a></p>
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/utils/errors.ts#L57">src/utils/errors.ts:57</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/utils/errors.ts#L46">src/utils/errors.ts:46</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -211,7 +213,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> <span class="tsd-flag
<aside class="tsd-sources">
<p>Inherited from <a href="utils_errors.autherror.html">AuthError</a>.<a href="utils_errors.autherror.html#status">status</a></p>
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/utils/errors.ts#L70">src/utils/errors.ts:70</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/utils/errors.ts#L62">src/utils/errors.ts:62</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -349,9 +351,6 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> <span class="tsd-flag
<li class=" tsd-kind-class tsd-parent-kind-module">
<a href="utils_errors.profilehandlererror.html" class="tsd-kind-icon">Profile<wbr>Handler<wbr>Error</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-module">
<a href="../modules/utils_errors.html#htmlsafe" class="tsd-kind-icon">html<wbr>Safe</a>
</li>
</ul>
</nav>
</div>
Expand Down
19 changes: 9 additions & 10 deletions docs/classes/utils_errors.autherror.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ <h3>constructor</h3>
<aside class="tsd-sources">
<p>Overrides Error.constructor</p>
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/utils/errors.ts#L70">src/utils/errors.ts:70</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/utils/errors.ts#L62">src/utils/errors.ts:62</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -157,15 +157,17 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> <span class="tsd-flag
<div class="tsd-signature tsd-kind-icon">cause<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Error</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/utils/errors.ts#L65">src/utils/errors.ts:65</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/utils/errors.ts#L57">src/utils/errors.ts:57</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>The underlying error, if any.</p>
</div>
<p><strong>IMPORTANT</strong> This underlying error is <strong>not</strong> escaped in any way,
so do <strong>not</strong> render it without escaping it first!</p>
<p><strong>IMPORTANT</strong> When this error is from the Identity Provider ({@Link IdentityProviderError}) it can contain user
input and is only escaped using basic escaping for putting untrusted data directly into the HTML body.</p>
<p>You should <strong>not</strong> render this error without using a templating engine that will properly escape it for other
HTML contexts first.</p>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
Expand All @@ -174,7 +176,7 @@ <h3><span class="tsd-flag ts-flagReadonly">Readonly</span> code</h3>
<div class="tsd-signature tsd-kind-icon">code<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/utils/errors.ts#L52">src/utils/errors.ts:52</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/utils/errors.ts#L41">src/utils/errors.ts:41</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -193,7 +195,7 @@ <h3><span class="tsd-flag ts-flagReadonly">Readonly</span> name</h3>
<aside class="tsd-sources">
<p>Overrides Error.name</p>
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/utils/errors.ts#L57">src/utils/errors.ts:57</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/utils/errors.ts#L46">src/utils/errors.ts:46</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -208,7 +210,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> <span class="tsd-flag
<div class="tsd-signature tsd-kind-icon">status<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/50cb3bd/src/utils/errors.ts#L70">src/utils/errors.ts:70</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/29e36b7/src/utils/errors.ts#L62">src/utils/errors.ts:62</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -346,9 +348,6 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> <span class="tsd-flag
<li class=" tsd-kind-class tsd-parent-kind-module">
<a href="utils_errors.profilehandlererror.html" class="tsd-kind-icon">Profile<wbr>Handler<wbr>Error</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-module">
<a href="../modules/utils_errors.html#htmlsafe" class="tsd-kind-icon">html<wbr>Safe</a>
</li>
</ul>
</nav>
</div>
Expand Down
Loading

0 comments on commit fd701fd

Please sign in to comment.