Skip to content

Commit 81ba152

Browse files
chore(release): v2.23.0 (#1192)
**Added** - feat: add 'use client' directive to bundles for RSC support [\#1179](#1179) ([gyaneshgouraw-okta](https://github.com/gyaneshgouraw-okta)) **Fixed** - fix: prevent open redirect via protocol-relative returnTo [\#1185](#1185) ([yogeshchoudhary147](https://github.com/yogeshchoudhary147)) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Clarified that the SDK is client-only and can be imported into Next.js App Router Server Components, while hook-using components must remain Client Components. * Refreshed generated documentation source references. * **Release** * Updated the package version to 2.23.0. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 7f3517a commit 81ba152

20 files changed

Lines changed: 69 additions & 56 deletions

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2.22.1
1+
v2.23.0

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Change Log
22

3+
## [v2.23.0](https://github.com/auth0/auth0-react/tree/v2.23.0) (2026-08-05)
4+
[Full Changelog](https://github.com/auth0/auth0-react/compare/v2.22.1...v2.23.0)
5+
6+
**Added**
7+
- feat: add 'use client' directive to bundles for RSC support [\#1179](https://github.com/auth0/auth0-react/pull/1179) ([gyaneshgouraw-okta](https://github.com/gyaneshgouraw-okta))
8+
9+
**Fixed**
10+
- fix: prevent open redirect via protocol-relative returnTo [\#1185](https://github.com/auth0/auth0-react/pull/1185) ([yogeshchoudhary147](https://github.com/yogeshchoudhary147))
11+
312
## [v2.22.1](https://github.com/auth0/auth0-react/tree/v2.22.1) (2026-07-29)
413
[Full Changelog](https://github.com/auth0/auth0-react/compare/v2.22.0...v2.22.1)
514

docs/classes/OAuthError.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h4>Hierarchy</h4>
2222
<ul class="tsd-hierarchy">
2323
<li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">OAuthError</span></li></ul></li></ul></section><aside class="tsd-sources">
2424
<ul>
25-
<li>Defined in <a href="https://github.com/auth0/auth0-react/blob/d790cb18bb55952b5227851a96ecdb8c41770249/src/errors.tsx#L7">src/errors.tsx:7</a></li></ul></aside>
25+
<li>Defined in <a href="https://github.com/auth0/auth0-react/blob/7f3517a93911471fb7d587c0a7e4a1a966e89819/src/errors.tsx#L7">src/errors.tsx:7</a></li></ul></aside>
2626
<section class="tsd-panel-group tsd-index-group">
2727
<section class="tsd-panel tsd-index-panel">
2828
<details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
@@ -63,20 +63,20 @@ <h4 class="tsd-parameters-title">Parameters</h4>
6363
<h4 class="tsd-returns-title">Returns <a href="" class="tsd-signature-type tsd-kind-class">OAuthError</a></h4><aside class="tsd-sources">
6464
<p>Overrides Error.constructor</p>
6565
<ul>
66-
<li>Defined in <a href="https://github.com/auth0/auth0-react/blob/d790cb18bb55952b5227851a96ecdb8c41770249/src/errors.tsx#L8">src/errors.tsx:8</a></li></ul></aside></div></li></ul></section></section></details>
66+
<li>Defined in <a href="https://github.com/auth0/auth0-react/blob/7f3517a93911471fb7d587c0a7e4a1a966e89819/src/errors.tsx#L8">src/errors.tsx:8</a></li></ul></aside></div></li></ul></section></section></details>
6767
<details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
6868
<h2 class="tsd-anchor-link" id="properties-1">Properties<a href="#properties-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2></summary>
6969
<section>
7070
<section class="tsd-panel tsd-member">
7171
<h3 class="tsd-anchor-link" id="error"><span>error</span><a href="#error" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
7272
<div class="tsd-signature"><span class="tsd-kind-property">error</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
7373
<ul>
74-
<li>Defined in <a href="https://github.com/auth0/auth0-react/blob/d790cb18bb55952b5227851a96ecdb8c41770249/src/errors.tsx#L8">src/errors.tsx:8</a></li></ul></aside></section>
74+
<li>Defined in <a href="https://github.com/auth0/auth0-react/blob/7f3517a93911471fb7d587c0a7e4a1a966e89819/src/errors.tsx#L8">src/errors.tsx:8</a></li></ul></aside></section>
7575
<section class="tsd-panel tsd-member">
7676
<h3 class="tsd-anchor-link" id="error_description"><code class="tsd-tag">Optional</code><span>error_<wbr/>description</span><a href="#error_description" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
7777
<div class="tsd-signature"><span class="tsd-kind-property">error_description</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
7878
<ul>
79-
<li>Defined in <a href="https://github.com/auth0/auth0-react/blob/d790cb18bb55952b5227851a96ecdb8c41770249/src/errors.tsx#L8">src/errors.tsx:8</a></li></ul></aside></section>
79+
<li>Defined in <a href="https://github.com/auth0/auth0-react/blob/7f3517a93911471fb7d587c0a7e4a1a966e89819/src/errors.tsx#L8">src/errors.tsx:8</a></li></ul></aside></section>
8080
<section class="tsd-panel tsd-member tsd-is-inherited tsd-is-external">
8181
<h3 class="tsd-anchor-link" id="message"><span>message</span><a href="#message" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
8282
<div class="tsd-signature"><span class="tsd-kind-property">message</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">

docs/functions/Auth0Provider.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ <h1>Function Auth0Provider</h1></div>
1919
</code><button type="button">Copy</button></pre>
2020

2121
<p>Provides the Auth0Context to its child components.</p>
22+
<p>The SDK is a client-only module (its published ESM and CommonJS bundles ship the
23+
<code>'use client'</code> directive), so in a Next.js App Router app you can import and render
24+
<code>Auth0Provider</code> directly from a Server Component such as <code>app/layout.tsx</code>.
25+
Components that call hooks like <code>useAuth0</code> must still be Client Components.</p>
2226
</div>
2327
<section class="tsd-panel">
2428
<h4>Type Parameters</h4>
@@ -30,7 +34,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
3034
<li><span><span class="tsd-kind-parameter">opts</span>: <a href="../types/Auth0ProviderOptions.html" class="tsd-signature-type tsd-kind-type-alias">Auth0ProviderOptions</a><span class="tsd-signature-symbol">&lt;</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#auth0providertuser">TUser</a><span class="tsd-signature-symbol">&gt;</span></span></li></ul></div>
3135
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Element</span></h4><aside class="tsd-sources">
3236
<ul>
33-
<li>Defined in <a href="https://github.com/auth0/auth0-react/blob/d790cb18bb55952b5227851a96ecdb8c41770249/src/auth0-provider.tsx#L172">src/auth0-provider.tsx:172</a></li></ul></aside></div></li></ul></section></div>
37+
<li>Defined in <a href="https://github.com/auth0/auth0-react/blob/7f3517a93911471fb7d587c0a7e4a1a966e89819/src/auth0-provider.tsx#L177">src/auth0-provider.tsx:177</a></li></ul></aside></div></li></ul></section></div>
3438
<div class="col-sidebar">
3539
<div class="page-menu">
3640
<div class="tsd-navigation settings">

docs/functions/useAuth0.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
3131
<li><span><span class="tsd-kind-parameter">context</span>: <span class="tsd-signature-type">Context</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/Auth0ContextInterface.html" class="tsd-signature-type tsd-kind-interface">Auth0ContextInterface</a><span class="tsd-signature-symbol">&lt;</span><a href="../classes/User.html" class="tsd-signature-type tsd-kind-class">User</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = Auth0Context</span></span></li></ul></div>
3232
<h4 class="tsd-returns-title">Returns <a href="../interfaces/Auth0ContextInterface.html" class="tsd-signature-type tsd-kind-interface">Auth0ContextInterface</a><span class="tsd-signature-symbol">&lt;</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#useauth0tuser">TUser</a><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
3333
<ul>
34-
<li>Defined in <a href="https://github.com/auth0/auth0-react/blob/d790cb18bb55952b5227851a96ecdb8c41770249/src/use-auth0.tsx#L29">src/use-auth0.tsx:29</a></li></ul></aside></div></li></ul></section></div>
34+
<li>Defined in <a href="https://github.com/auth0/auth0-react/blob/7f3517a93911471fb7d587c0a7e4a1a966e89819/src/use-auth0.tsx#L29">src/use-auth0.tsx:29</a></li></ul></aside></div></li></ul></section></div>
3535
<div class="col-sidebar">
3636
<div class="page-menu">
3737
<div class="tsd-navigation settings">

docs/functions/withAuth0.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
3333
<li><span><span class="tsd-kind-parameter">context</span>: <span class="tsd-signature-type">Context</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/Auth0ContextInterface.html" class="tsd-signature-type tsd-kind-interface">Auth0ContextInterface</a><span class="tsd-signature-symbol">&lt;</span><a href="../classes/User.html" class="tsd-signature-type tsd-kind-class">User</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = Auth0Context</span></span></li></ul></div>
3434
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ComponentType</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Omit</span><span class="tsd-signature-symbol">&lt;</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#withauth0p">P</a><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-type">&quot;auth0&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
3535
<ul>
36-
<li>Defined in <a href="https://github.com/auth0/auth0-react/blob/d790cb18bb55952b5227851a96ecdb8c41770249/src/with-auth0.tsx#L29">src/with-auth0.tsx:29</a></li></ul></aside></div></li></ul></section></div>
36+
<li>Defined in <a href="https://github.com/auth0/auth0-react/blob/7f3517a93911471fb7d587c0a7e4a1a966e89819/src/with-auth0.tsx#L29">src/with-auth0.tsx:29</a></li></ul></aside></div></li></ul></section></div>
3737
<div class="col-sidebar">
3838
<div class="page-menu">
3939
<div class="tsd-navigation settings">

docs/functions/withAuthenticationRequired.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
3232
<li><span><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/WithAuthenticationRequiredOptions.html" class="tsd-signature-type tsd-kind-interface">WithAuthenticationRequiredOptions</a><span class="tsd-signature-symbol"> = {}</span></span></li></ul></div>
3333
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">FC</span><span class="tsd-signature-symbol">&lt;</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#withauthenticationrequiredp">P</a><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
3434
<ul>
35-
<li>Defined in <a href="https://github.com/auth0/auth0-react/blob/d790cb18bb55952b5227851a96ecdb8c41770249/src/with-authentication-required.tsx#L97">src/with-authentication-required.tsx:97</a></li></ul></aside></div></li></ul></section></div>
35+
<li>Defined in <a href="https://github.com/auth0/auth0-react/blob/7f3517a93911471fb7d587c0a7e4a1a966e89819/src/with-authentication-required.tsx#L103">src/with-authentication-required.tsx:103</a></li></ul></aside></div></li></ul></section></div>
3636
<div class="col-sidebar">
3737
<div class="page-menu">
3838
<div class="tsd-navigation settings">

0 commit comments

Comments
 (0)