Skip to content

Commit

Permalink
Merge pull request #1000 from auth0/release/v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjmcgrath authored Jan 12, 2023
2 parents ff105f9 + c0758d9 commit d3d72af
Show file tree
Hide file tree
Showing 53 changed files with 339 additions and 227 deletions.
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.1.0](https://github.com/auth0/nextjs-auth0/tree/v2.1.0) (2023-01-11)
[Full Changelog](https://github.com/auth0/nextjs-auth0/compare/v2.0.1...v2.1.0)

**Added**
- SDK-3807 Add custom session stores [\#993](https://github.com/auth0/nextjs-auth0/pull/993) ([adamjmcgrath](https://github.com/adamjmcgrath))

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

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/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/58847ff/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/39e9d2e/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/58847ff/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/39e9d2e/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/58847ff/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/39e9d2e/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/58847ff/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/39e9d2e/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/58847ff/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/39e9d2e/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/58847ff/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/39e9d2e/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/58847ff/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/39e9d2e/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/58847ff/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/39e9d2e/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/58847ff/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/39e9d2e/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/58847ff/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/39e9d2e/src/auth0-session/utils/errors.ts#L16">src/auth0-session/utils/errors.ts:16</a></li>
</ul>
</aside>
</section>
Expand Down
22 changes: 11 additions & 11 deletions docs/classes/index.sessioncache.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ <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-has-type-parameter">
<li class="tsd-signature tsd-kind-icon">new <wbr>Session<wbr>Cache&lt;Req, Res&gt;<span class="tsd-signature-symbol">(</span>config<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Config</span>, cookieStore<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">default</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Req</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">Res</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="index.sessioncache.html" class="tsd-signature-type" data-tsd-kind="Class">SessionCache</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Req</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">Res</span><span class="tsd-signature-symbol">&gt;</span></li>
<li class="tsd-signature tsd-kind-icon">new <wbr>Session<wbr>Cache&lt;Req, Res&gt;<span class="tsd-signature-symbol">(</span>config<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Config</span>, sessionStore<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">AbstractSession</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Req</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">Res</span><span class="tsd-signature-symbol">, </span><a href="session_session.default.html" class="tsd-signature-type" data-tsd-kind="Class">default</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="index.sessioncache.html" class="tsd-signature-type" data-tsd-kind="Class">SessionCache</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Req</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">Res</span><span class="tsd-signature-symbol">&gt;</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<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>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/39e9d2e/src/session/cache.ts#L13">src/session/cache.ts:13</a></li>
</ul>
</aside>
<h4 class="tsd-type-parameters-title">Type parameters</h4>
Expand All @@ -147,7 +147,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<h5>config: <span class="tsd-signature-type">Config</span></h5>
</li>
<li>
<h5>cookieStore: <span class="tsd-signature-type">default</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Req</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">Res</span><span class="tsd-signature-symbol">&gt;</span></h5>
<h5>sessionStore: <span class="tsd-signature-type">AbstractSession</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Req</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">Res</span><span class="tsd-signature-symbol">, </span><a href="session_session.default.html" class="tsd-signature-type" data-tsd-kind="Class">default</a><span class="tsd-signature-symbol">&gt;</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <a href="index.sessioncache.html" class="tsd-signature-type" data-tsd-kind="Class">SessionCache</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Req</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">Res</span><span class="tsd-signature-symbol">&gt;</span></h4>
Expand All @@ -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/58847ff/src/session/cache.ts#L35">src/session/cache.ts:35</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/39e9d2e/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/58847ff/src/session/cache.ts#L40">src/session/cache.ts:40</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/39e9d2e/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/58847ff/src/session/cache.ts#L69">src/session/cache.ts:69</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/39e9d2e/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/58847ff/src/session/cache.ts#L64">src/session/cache.ts:64</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/39e9d2e/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/58847ff/src/session/cache.ts#L52">src/session/cache.ts:52</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/39e9d2e/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/58847ff/src/session/cache.ts#L46">src/session/cache.ts:46</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/39e9d2e/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/58847ff/src/session/cache.ts#L31">src/session/cache.ts:31</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/39e9d2e/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/58847ff/src/session/cache.ts#L58">src/session/cache.ts:58</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/39e9d2e/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/58847ff/src/session/session.ts#L53">src/session/session.ts:53</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/39e9d2e/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/58847ff/src/session/session.ts#L33">src/session/session.ts:33</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/39e9d2e/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/58847ff/src/session/session.ts#L43">src/session/session.ts:43</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/39e9d2e/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/58847ff/src/session/session.ts#L38">src/session/session.ts:38</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/39e9d2e/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/58847ff/src/session/session.ts#L28">src/session/session.ts:28</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/39e9d2e/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/58847ff/src/session/session.ts#L51">src/session/session.ts:51</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/39e9d2e/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/58847ff/src/session/session.ts#L23">src/session/session.ts:23</a></li>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/39e9d2e/src/session/session.ts#L23">src/session/session.ts:23</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
Loading

0 comments on commit d3d72af

Please sign in to comment.