Skip to content

Commit

Permalink
Merge pull request #895 from auth0/release/v2.0.0-beta.2
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjmcgrath committed Nov 2, 2022
2 parents f0a584e + 19357f6 commit 1764154
Show file tree
Hide file tree
Showing 50 changed files with 246 additions and 192 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Change Log

## [v2.0.0-beta.2](https://github.com/auth0/nextjs-auth0/tree/v2.0.0-beta.2) (2022-11-02)
[Full Changelog](https://github.com/auth0/nextjs-auth0/compare/v2.0.0-beta.1...v2.0.0-beta.2)

**Added**
- At error cause to AT error when it's from a failed grant [\#878](https://github.com/auth0/nextjs-auth0/pull/878) ([adamjmcgrath](https://github.com/adamjmcgrath))
- Add logout options [\#877](https://github.com/auth0/nextjs-auth0/pull/877) ([adamjmcgrath](https://github.com/adamjmcgrath))

**Fixed**
- Fix for new req.cookie interface [\#894](https://github.com/auth0/nextjs-auth0/pull/894) ([adamjmcgrath](https://github.com/adamjmcgrath))

## [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)

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/29e36b7/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/f0a584e/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/29e36b7/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/f0a584e/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/29e36b7/src/session/cache.ts#L13">src/session/cache.ts:13</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/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/29e36b7/src/session/cache.ts#L35">src/session/cache.ts:35</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/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/29e36b7/src/session/cache.ts#L40">src/session/cache.ts:40</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/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/29e36b7/src/session/cache.ts#L69">src/session/cache.ts:69</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/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/29e36b7/src/session/cache.ts#L64">src/session/cache.ts:64</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/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/29e36b7/src/session/cache.ts#L52">src/session/cache.ts:52</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/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/29e36b7/src/session/cache.ts#L46">src/session/cache.ts:46</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/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/29e36b7/src/session/cache.ts#L31">src/session/cache.ts:31</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/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/29e36b7/src/session/cache.ts#L58">src/session/cache.ts:58</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/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/29e36b7/src/session/session.ts#L53">src/session/session.ts:53</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/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/29e36b7/src/session/session.ts#L33">src/session/session.ts:33</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/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/29e36b7/src/session/session.ts#L43">src/session/session.ts:43</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/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/29e36b7/src/session/session.ts#L38">src/session/session.ts:38</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/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/29e36b7/src/session/session.ts#L28">src/session/session.ts:28</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/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/29e36b7/src/session/session.ts#L51">src/session/session.ts:51</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/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/29e36b7/src/session/session.ts#L23">src/session/session.ts:23</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/src/session/session.ts#L23">src/session/session.ts:23</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
15 changes: 9 additions & 6 deletions docs/classes/utils_errors.accesstokenerror.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,14 @@ <h2>Constructors</h2>
<a name="constructor" class="tsd-anchor"></a>
<h3>constructor</h3>
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite">
<li class="tsd-signature tsd-kind-icon">new <wbr>Access<wbr>Token<wbr>Error<span class="tsd-signature-symbol">(</span>code<span class="tsd-signature-symbol">: </span><a href="../enums/utils_errors.accesstokenerrorcode.html" class="tsd-signature-type" data-tsd-kind="Enumeration">AccessTokenErrorCode</a>, message<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="utils_errors.accesstokenerror.html" class="tsd-signature-type" data-tsd-kind="Class">AccessTokenError</a></li>
<li class="tsd-signature tsd-kind-icon">new <wbr>Access<wbr>Token<wbr>Error<span class="tsd-signature-symbol">(</span>code<span class="tsd-signature-symbol">: </span><a href="../enums/utils_errors.accesstokenerrorcode.html" class="tsd-signature-type" data-tsd-kind="Enumeration">AccessTokenErrorCode</a>, message<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, cause<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="utils_errors.accesstokenerror.html" class="tsd-signature-type" data-tsd-kind="Class">AccessTokenError</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<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/29e36b7/src/utils/errors.ts#L98">src/utils/errors.ts:98</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/src/utils/errors.ts#L99">src/utils/errors.ts:99</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -143,6 +143,9 @@ <h5>code: <a href="../enums/utils_errors.accesstokenerrorcode.html" class="tsd-s
<li>
<h5>message: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagOptional">Optional</span> cause: <span class="tsd-signature-type">Error</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <a href="utils_errors.accesstokenerror.html" class="tsd-signature-type" data-tsd-kind="Class">AccessTokenError</a></h4>
</li>
Expand All @@ -158,7 +161,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#cause">cause</a></p>
<ul>
<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>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/src/utils/errors.ts#L57">src/utils/errors.ts:57</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -178,7 +181,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/29e36b7/src/utils/errors.ts#L41">src/utils/errors.ts:41</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/src/utils/errors.ts#L41">src/utils/errors.ts:41</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -197,7 +200,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/29e36b7/src/utils/errors.ts#L46">src/utils/errors.ts:46</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/src/utils/errors.ts#L46">src/utils/errors.ts:46</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -213,7 +216,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/29e36b7/src/utils/errors.ts#L62">src/utils/errors.ts:62</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/src/utils/errors.ts#L62">src/utils/errors.ts:62</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
10 changes: 5 additions & 5 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/29e36b7/src/utils/errors.ts#L62">src/utils/errors.ts:62</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/src/utils/errors.ts#L62">src/utils/errors.ts:62</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -157,7 +157,7 @@ <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/29e36b7/src/utils/errors.ts#L57">src/utils/errors.ts:57</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/src/utils/errors.ts#L57">src/utils/errors.ts:57</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -176,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/29e36b7/src/utils/errors.ts#L41">src/utils/errors.ts:41</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/src/utils/errors.ts#L41">src/utils/errors.ts:41</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -195,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/29e36b7/src/utils/errors.ts#L46">src/utils/errors.ts:46</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/src/utils/errors.ts#L46">src/utils/errors.ts:46</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -210,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/29e36b7/src/utils/errors.ts#L62">src/utils/errors.ts:62</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/f0a584e/src/utils/errors.ts#L62">src/utils/errors.ts:62</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
Loading

0 comments on commit 1764154

Please sign in to comment.