Skip to content

Commit

Permalink
Merge pull request #961 from auth0/release/v2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjmcgrath authored Dec 9, 2022
2 parents 58847ff + dce1917 commit c690370
Show file tree
Hide file tree
Showing 52 changed files with 232 additions and 225 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## [v2.0.1](https://github.com/auth0/nextjs-auth0/tree/v2.0.1) (2022-12-09)
[Full Changelog](https://github.com/auth0/nextjs-auth0/compare/v2.0.0...v2.0.1)

**Fixed**
- afterCallback return type fix [\#954](https://github.com/auth0/nextjs-auth0/pull/954) ([alexmalev](https://github.com/alexmalev))
- fix/rerenders: useMemo to avoid unnecessary rerenders [\#945](https://github.com/auth0/nextjs-auth0/pull/945) ([stavros-liaskos](https://github.com/stavros-liaskos))

## [v2.0.0](https://github.com/auth0/nextjs-auth0/tree/v2.0.0) (2022-12-01)

[Full Changelog](https://github.com/auth0/nextjs-auth0/compare/v1.9.2...v2.0.0)
Expand Down
4 changes: 2 additions & 2 deletions docs/classes/client_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/af21d7c/src/client/use-user.tsx#L47">src/client/use-user.tsx:47</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/src/client/use-user.tsx#L47">src/client/use-user.tsx:47</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/af21d7c/src/client/use-user.tsx#L47">src/client/use-user.tsx:47</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/src/client/use-user.tsx#L47">src/client/use-user.tsx:47</a></li>
</ul>
</aside>
</section>
Expand Down
2 changes: 1 addition & 1 deletion docs/classes/index.applicationerror.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ <h3>constructor</h3>
<aside class="tsd-sources">
<p>Overrides EscapedError.constructor</p>
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/af21d7c/src/auth0-session/utils/errors.ts#L35">src/auth0-session/utils/errors.ts:35</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/src/auth0-session/utils/errors.ts#L35">src/auth0-session/utils/errors.ts:35</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
6 changes: 3 additions & 3 deletions docs/classes/index.identityprovidererror.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ <h3>constructor</h3>
<aside class="tsd-sources">
<p>Overrides EscapedError.constructor</p>
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/af21d7c/src/auth0-session/utils/errors.ts#L59">src/auth0-session/utils/errors.ts:59</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/src/auth0-session/utils/errors.ts#L59">src/auth0-session/utils/errors.ts:59</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -140,7 +140,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> error</h3>
<div class="tsd-signature tsd-kind-icon">error<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/af21d7c/src/auth0-session/utils/errors.ts#L59">src/auth0-session/utils/errors.ts:59</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/src/auth0-session/utils/errors.ts#L59">src/auth0-session/utils/errors.ts:59</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -157,7 +157,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> error<wbr>Description
<div class="tsd-signature tsd-kind-icon">error<wbr>Description<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/af21d7c/src/auth0-session/utils/errors.ts#L53">src/auth0-session/utils/errors.ts:53</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/src/auth0-session/utils/errors.ts#L53">src/auth0-session/utils/errors.ts:53</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
4 changes: 2 additions & 2 deletions docs/classes/index.missingstatecookieerror.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,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/af21d7c/src/auth0-session/utils/errors.ts#L26">src/auth0-session/utils/errors.ts:26</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/src/auth0-session/utils/errors.ts#L26">src/auth0-session/utils/errors.ts:26</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <a href="index.missingstatecookieerror.html" class="tsd-signature-type" data-tsd-kind="Class">MissingStateCookieError</a></h4>
Expand All @@ -127,7 +127,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> message</h3>
<div class="tsd-signature tsd-kind-icon">message<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &#x27;Missing state cookie from login request (check login URL, callback URL and cookie config).&#x27;</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/af21d7c/src/auth0-session/utils/errors.ts#L26">src/auth0-session/utils/errors.ts:26</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/src/auth0-session/utils/errors.ts#L26">src/auth0-session/utils/errors.ts:26</a></li>
</ul>
</aside>
</section>
Expand Down
4 changes: 2 additions & 2 deletions docs/classes/index.missingstateparamerror.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,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/af21d7c/src/auth0-session/utils/errors.ts#L16">src/auth0-session/utils/errors.ts:16</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/src/auth0-session/utils/errors.ts#L16">src/auth0-session/utils/errors.ts:16</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <a href="index.missingstateparamerror.html" class="tsd-signature-type" data-tsd-kind="Class">MissingStateParamError</a></h4>
Expand All @@ -127,7 +127,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> message</h3>
<div class="tsd-signature tsd-kind-icon">message<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &#x27;Missing state parameter in Authorization Response.&#x27;</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/af21d7c/src/auth0-session/utils/errors.ts#L16">src/auth0-session/utils/errors.ts:16</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/src/auth0-session/utils/errors.ts#L16">src/auth0-session/utils/errors.ts:16</a></li>
</ul>
</aside>
</section>
Expand Down
18 changes: 9 additions & 9 deletions docs/classes/index.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/af21d7c/src/session/cache.ts#L13">src/session/cache.ts:13</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/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/af21d7c/src/session/cache.ts#L35">src/session/cache.ts:35</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/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/af21d7c/src/session/cache.ts#L40">src/session/cache.ts:40</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/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/af21d7c/src/session/cache.ts#L69">src/session/cache.ts:69</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/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/af21d7c/src/session/cache.ts#L64">src/session/cache.ts:64</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/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/af21d7c/src/session/cache.ts#L52">src/session/cache.ts:52</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/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/af21d7c/src/session/cache.ts#L46">src/session/cache.ts:46</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/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/af21d7c/src/session/cache.ts#L31">src/session/cache.ts:31</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/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/af21d7c/src/session/cache.ts#L58">src/session/cache.ts:58</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/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/af21d7c/src/session/session.ts#L53">src/session/session.ts:53</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/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/af21d7c/src/session/session.ts#L33">src/session/session.ts:33</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/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/af21d7c/src/session/session.ts#L43">src/session/session.ts:43</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/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/af21d7c/src/session/session.ts#L38">src/session/session.ts:38</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/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/af21d7c/src/session/session.ts#L28">src/session/session.ts:28</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/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/af21d7c/src/session/session.ts#L51">src/session/session.ts:51</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/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/af21d7c/src/session/session.ts#L23">src/session/session.ts:23</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/src/session/session.ts#L23">src/session/session.ts:23</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
10 changes: 5 additions & 5 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/af21d7c/src/utils/errors.ts#L99">src/utils/errors.ts:99</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/src/utils/errors.ts#L99">src/utils/errors.ts:99</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down Expand Up @@ -161,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/af21d7c/src/utils/errors.ts#L57">src/utils/errors.ts:57</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/src/utils/errors.ts#L57">src/utils/errors.ts:57</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -181,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/af21d7c/src/utils/errors.ts#L41">src/utils/errors.ts:41</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/src/utils/errors.ts#L41">src/utils/errors.ts:41</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -200,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/af21d7c/src/utils/errors.ts#L46">src/utils/errors.ts:46</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/src/utils/errors.ts#L46">src/utils/errors.ts:46</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -216,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/af21d7c/src/utils/errors.ts#L62">src/utils/errors.ts:62</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/58847ff/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 c690370

Please sign in to comment.