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.28.1
v2.28.2
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.28.2](https://github.com/auth0/auth0-react/tree/v2.28.2) (2026-10-02)
[Full Changelog](https://github.com/auth0/auth0-react/compare/v2.28.1...v2.28.2)

**Fixed**
- fix(anonymous): bump auth0-spa-js to v2.28.2 to properly handle session expiry errors [\#1271](https://github.com/auth0/auth0-react/pull/1271) ([yogeshchoudhary147](https://github.com/yogeshchoudhary147))

## [v2.28.1](https://github.com/auth0/auth0-react/tree/v2.28.1) (2026-10-02)
[Full Changelog](https://github.com/auth0/auth0-react/compare/v2.28.0...v2.28.1)

Expand Down
12 changes: 6 additions & 6 deletions docs/classes/AnonymousSessionError.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ <h1>Class AnonymousSessionError</h1></div>
<section class="tsd-panel tsd-comment">
<div class="tsd-comment tsd-typography"><p>Error thrown when an anonymous session operation fails.</p>
<p>The <code>code</code> field identifies the specific failure reason. Codes <code>session_expired</code>
and <code>invalid_session_token</code> are handled silently by AnonymousSessionClient.getAccessToken
and will never reach the caller from that method. All other codes are surfaced directly.</p>
and <code>invalid_session_token</code> are propagated by AnonymousSessionClient.getAccessToken
so the calling SDK can recover using its own stored state.</p>
</div></section>
<section class="tsd-panel tsd-hierarchy" data-refl="1033">
<h4>Hierarchy</h4>
Expand All @@ -23,7 +23,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">AnonymousSessionError</span></li></ul></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3296</li></ul></aside>
<li>Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3280</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 @@ -65,7 +65,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<h4 class="tsd-returns-title">Returns <a href="" class="tsd-signature-type tsd-kind-class">AnonymousSessionError</a></h4><aside class="tsd-sources">
<p>Overrides Error.constructor</p>
<ul>
<li>Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3306</li></ul></aside></div></li></ul></section></section></details>
<li>Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3290</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>
Expand All @@ -75,15 +75,15 @@ <h3 class="tsd-anchor-link" id="cause"><code class="tsd-tag">Optional</code><spa
<div class="tsd-comment tsd-typography"><p>The raw error response from Auth0, if available.</p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3305</li></ul></aside></section>
<li>Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3289</li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-is-external">
<h3 class="tsd-anchor-link" id="code"><span>code</span><a href="#code" 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">code</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<div class="tsd-comment tsd-typography"><p>Machine-readable error code identifying the failure reason.
Maps to the <code>error</code> field in the Auth0 API response.</p>
</div><aside class="tsd-sources">
<ul>
<li>Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3301</li></ul></aside></section>
<li>Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3285</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
10 changes: 5 additions & 5 deletions docs/classes/OAuthError.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ <h1>Class OAuthError</h1></div>
be the error code. And possibly an <code>error_description</code> property</p>
<p>See: <a href="https://openid.net/specs/openid-connect-core-1_0.html#rfc.section.3.1.2.6">https://openid.net/specs/openid-connect-core-1_0.html#rfc.section.3.1.2.6</a></p>
</div></section>
<section class="tsd-panel tsd-hierarchy" data-refl="1250">
<section class="tsd-panel tsd-hierarchy" data-refl="1249">
<h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li class="tsd-hierarchy-item"><span class="tsd-signature-type">Error</span>
<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/497c15ec1946a41da9fbb7f521664940877ef220/src/errors.tsx#L7">src/errors.tsx:7</a></li></ul></aside>
<li>Defined in <a href="https://github.com/auth0/auth0-react/blob/042f55a9a2ea62a1ea421a8e93018545af418136/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/497c15ec1946a41da9fbb7f521664940877ef220/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/042f55a9a2ea62a1ea421a8e93018545af418136/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/497c15ec1946a41da9fbb7f521664940877ef220/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/042f55a9a2ea62a1ea421a8e93018545af418136/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/497c15ec1946a41da9fbb7f521664940877ef220/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/042f55a9a2ea62a1ea421a8e93018545af418136/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
14 changes: 7 additions & 7 deletions docs/classes/PasskeyChallengeError.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">PasskeyChallengeError</span></li></ul></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3075</li></ul></aside>
<li>Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3059</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 @@ -64,7 +64,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<h4 class="tsd-returns-title">Returns <a href="" class="tsd-signature-type tsd-kind-class">PasskeyChallengeError</a></h4><aside class="tsd-sources">
<p>Overrides PasskeyError.constructor</p>
<ul>
<li>Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3076</li></ul></aside></div></li></ul></section></section></details>
<li>Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3060</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>
Expand All @@ -75,27 +75,27 @@ <h3 class="tsd-anchor-link" id="body"><code class="tsd-tag">Optional</code><span
</div><aside class="tsd-sources">
<p>Inherited from PasskeyError.body</p>
<ul>
<li>Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3063</li></ul></aside></section>
<li>Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3047</li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-is-inherited tsd-is-external">
<h3 class="tsd-anchor-link" id="cause"><code class="tsd-tag">Optional</code><span>cause</span><a href="#cause" 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">cause</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">PasskeyApiErrorResponse</span></div><aside class="tsd-sources">
<p>Inherited from PasskeyError.cause</p>
<ul>
<li>Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3050</li></ul></aside></section>
<li>Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3034</li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-is-inherited tsd-is-external">
<h3 class="tsd-anchor-link" id="code"><span>code</span><a href="#code" 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">code</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
<p>Inherited from PasskeyError.code</p>
<ul>
<li>Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3051</li></ul></aside></section>
<li>Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3035</li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-is-inherited tsd-is-external">
<h3 class="tsd-anchor-link" id="headers"><code class="tsd-tag">Optional</code><span>headers</span><a href="#headers" 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">headers</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">Headers</span></div>
<div class="tsd-comment tsd-typography"><p>Response headers from the error response, when available. Native Fetch <code>Headers</code>.</p>
</div><aside class="tsd-sources">
<p>Inherited from PasskeyError.headers</p>
<ul>
<li>Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3059</li></ul></aside></section>
<li>Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3043</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 All @@ -121,7 +121,7 @@ <h3 class="tsd-anchor-link" id="statuscode"><code class="tsd-tag">Optional</code
</div><aside class="tsd-sources">
<p>Inherited from PasskeyError.statusCode</p>
<ul>
<li>Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3055</li></ul></aside></section>
<li>Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3039</li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-is-inherited tsd-is-external">
<h3 class="tsd-anchor-link" id="stacktracelimit"><code class="tsd-tag">Static</code><span>stack<wbr/>Trace<wbr/>Limit</span><a href="#stacktracelimit" 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">stackTraceLimit</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
Expand Down
Loading
Loading