Skip to content
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
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.22.1
v2.23.0
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Change Log

## [v2.23.0](https://github.com/auth0/auth0-react/tree/v2.23.0) (2026-08-05)
[Full Changelog](https://github.com/auth0/auth0-react/compare/v2.22.1...v2.23.0)

**Added**
- 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))

**Fixed**
- fix: prevent open redirect via protocol-relative returnTo [\#1185](https://github.com/auth0/auth0-react/pull/1185) ([yogeshchoudhary147](https://github.com/yogeshchoudhary147))

## [v2.22.1](https://github.com/auth0/auth0-react/tree/v2.22.1) (2026-07-29)
[Full Changelog](https://github.com/auth0/auth0-react/compare/v2.22.0...v2.22.1)

Expand Down
8 changes: 4 additions & 4 deletions docs/classes/OAuthError.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">OAuthError</span></li></ul></li></ul></section><aside class="tsd-sources">
<ul>
<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>
<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>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<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>
Expand Down Expand Up @@ -63,20 +63,20 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<h4 class="tsd-returns-title">Returns <a href="" class="tsd-signature-type tsd-kind-class">OAuthError</a></h4><aside class="tsd-sources">
<p>Overrides Error.constructor</p>
<ul>
<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>
<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>
<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>
<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>
<section>
<section class="tsd-panel tsd-member">
<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>
<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">
<ul>
<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>
<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>
<section class="tsd-panel tsd-member">
<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>
<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">
<ul>
<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>
<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>
<section class="tsd-panel tsd-member tsd-is-inherited tsd-is-external">
<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>
<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">
Expand Down
6 changes: 5 additions & 1 deletion docs/functions/Auth0Provider.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ <h1>Function Auth0Provider</h1></div>
</code><button type="button">Copy</button></pre>

<p>Provides the Auth0Context to its child components.</p>
<p>The SDK is a client-only module (its published ESM and CommonJS bundles ship the
<code>'use client'</code> directive), so in a Next.js App Router app you can import and render
<code>Auth0Provider</code> directly from a Server Component such as <code>app/layout.tsx</code>.
Components that call hooks like <code>useAuth0</code> must still be Client Components.</p>
</div>
<section class="tsd-panel">
<h4>Type Parameters</h4>
Expand All @@ -30,7 +34,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<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>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Element</span></h4><aside class="tsd-sources">
<ul>
<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>
<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>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
2 changes: 1 addition & 1 deletion docs/functions/useAuth0.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<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>
<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">
<ul>
<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>
<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>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
2 changes: 1 addition & 1 deletion docs/functions/withAuth0.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<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>
<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">
<ul>
<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>
<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>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
2 changes: 1 addition & 1 deletion docs/functions/withAuthenticationRequired.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<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>
<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">
<ul>
<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>
<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>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
Loading
Loading