Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v2.4.0 #1132

Merged
merged 1 commit into from
Mar 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.4.0](https://github.com/auth0/nextjs-auth0/tree/v2.4.0) (2023-03-27)
[Full Changelog](https://github.com/auth0/nextjs-auth0/compare/v2.3.1...v2.4.0)

**Added**
- Add `autoSave`/`touchSession` for rolling session expiry management [\#1116](https://github.com/auth0/nextjs-auth0/pull/1116) ([aovens-quantifi](https://github.com/aovens-quantifi))

## [v2.3.1](https://github.com/auth0/nextjs-auth0/tree/v2.3.1) (2023-03-17)
[Full Changelog](https://github.com/auth0/nextjs-auth0/compare/v2.3.0...v2.3.1)

Expand Down
2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions docs/classes/client_use_user.RequestError.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">RequestError</span></li></ul></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/12e979c/src/client/use-user.tsx#L46">client/use-user.tsx:46</a></li></ul></aside>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/73b4739/src/client/use-user.tsx#L46">client/use-user.tsx:46</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand Down Expand Up @@ -59,14 +59,14 @@ <h5>status: <span class="tsd-signature-type">number</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="client_use_user.RequestError.html" class="tsd-signature-type" data-tsd-kind="Class">RequestError</a></h4><aside class="tsd-sources">
<p>Overrides Error.constructor</p>
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/12e979c/src/client/use-user.tsx#L49">client/use-user.tsx:49</a></li></ul></aside></li></ul></section></section>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/73b4739/src/client/use-user.tsx#L49">client/use-user.tsx:49</a></li></ul></aside></li></ul></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="status" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>status</span><a href="#status" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature">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/12e979c/src/client/use-user.tsx#L47">client/use-user.tsx:47</a></li></ul></aside></section></section></div>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/73b4739/src/client/use-user.tsx#L47">client/use-user.tsx:47</a></li></ul></aside></section></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
Expand Down Expand Up @@ -107,6 +107,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<li class="tsd-kind-module"><a href="../modules/session_get_access_token.html">session/get-<wbr/>access-<wbr/>token</a></li>
<li class="tsd-kind-module"><a href="../modules/session_get_session.html">session/get-<wbr/>session</a></li>
<li class="tsd-kind-module"><a href="../modules/session_session.html">session/session</a></li>
<li class="tsd-kind-module"><a href="../modules/session_touch_session.html">session/touch-<wbr/>session</a></li>
<li class="tsd-kind-module"><a href="../modules/session_update_session.html">session/update-<wbr/>session</a></li>
<li class="tsd-kind-module"><a href="../modules/utils_errors.html">utils/errors</a></li>
<li class="tsd-kind-module"><a href="../modules/version.html">version</a></li></ul></li></ul></div></details></nav>
Expand Down
17 changes: 9 additions & 8 deletions docs/classes/session_session.default.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h4>Hierarchy</h4>
<h4 class="tsd-before-signature">Indexable</h4>
<div class="tsd-signature"><span class="tsd-signature-symbol">[</span>key: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">any</span></div></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/12e979c/src/session/session.ts#L19">session/session.ts:19</a></li></ul></aside>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/73b4739/src/session/session.ts#L19">session/session.ts:19</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand Down Expand Up @@ -60,7 +60,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<h5>user: <a href="../interfaces/session_session.Claims.html" class="tsd-signature-type" data-tsd-kind="Interface">Claims</a></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="session_session.default.html" class="tsd-signature-type" data-tsd-kind="Class">default</a></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/12e979c/src/session/session.ts#L55">session/session.ts:55</a></li></ul></aside></li></ul></section></section>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/73b4739/src/session/session.ts#L55">session/session.ts:55</a></li></ul></aside></li></ul></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="accessToken" class="tsd-anchor"></a>
Expand All @@ -69,28 +69,28 @@ <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code
<div class="tsd-comment tsd-typography"><p>The access token.</p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/12e979c/src/session/session.ts#L33">session/session.ts:33</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/73b4739/src/session/session.ts#L33">session/session.ts:33</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="accessTokenExpiresAt" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>access<wbr/>Token<wbr/>Expires<wbr/>At</span><a href="#accessTokenExpiresAt" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature">access<wbr/>Token<wbr/>Expires<wbr/>At<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span></div>
<div class="tsd-comment tsd-typography"><p>The expiration of the access token.</p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/12e979c/src/session/session.ts#L43">session/session.ts:43</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/73b4739/src/session/session.ts#L43">session/session.ts:43</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="accessTokenScope" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>access<wbr/>Token<wbr/>Scope</span><a href="#accessTokenScope" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature">access<wbr/>Token<wbr/>Scope<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
<div class="tsd-comment tsd-typography"><p>The access token scopes.</p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/12e979c/src/session/session.ts#L38">session/session.ts:38</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/73b4739/src/session/session.ts#L38">session/session.ts:38</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="idToken" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>id<wbr/>Token</span><a href="#idToken" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature">id<wbr/>Token<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
<div class="tsd-comment tsd-typography"><p>The ID token.</p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/12e979c/src/session/session.ts#L28">session/session.ts:28</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/73b4739/src/session/session.ts#L28">session/session.ts:28</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="refreshToken" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>refresh<wbr/>Token</span><a href="#refreshToken" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature">refresh<wbr/>Token<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
Expand All @@ -99,14 +99,14 @@ <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code
from Auth0.</p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/12e979c/src/session/session.ts#L51">session/session.ts:51</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/73b4739/src/session/session.ts#L51">session/session.ts:51</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="user" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>user</span><a href="#user" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature">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>
<div class="tsd-comment tsd-typography"><p>Any of the claims from the <code>id_token</code>.</p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/12e979c/src/session/session.ts#L23">session/session.ts:23</a></li></ul></aside></section></section></div>
<li>Defined in <a href="https://github.com/auth0/nextjs-auth0/blob/73b4739/src/session/session.ts#L23">session/session.ts:23</a></li></ul></aside></section></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
Expand Down Expand Up @@ -147,6 +147,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<li class="tsd-kind-module"><a href="../modules/session_get_access_token.html">session/get-<wbr/>access-<wbr/>token</a></li>
<li class="tsd-kind-module"><a href="../modules/session_get_session.html">session/get-<wbr/>session</a></li>
<li class="current tsd-kind-module"><a href="../modules/session_session.html">session/session</a></li>
<li class="tsd-kind-module"><a href="../modules/session_touch_session.html">session/touch-<wbr/>session</a></li>
<li class="tsd-kind-module"><a href="../modules/session_update_session.html">session/update-<wbr/>session</a></li>
<li class="tsd-kind-module"><a href="../modules/utils_errors.html">utils/errors</a></li>
<li class="tsd-kind-module"><a href="../modules/version.html">version</a></li></ul></li></ul></div></details></nav>
Expand Down
Loading