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 @@
1.0.0-beta.0
1.0.0-beta.1
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [1.0.0-beta.1] - 2026-08-24

### Fixed

- `Auth0Provider` no longer crashes on first render when the package is installed from npm and Vite externalizes it. The CJS build replaces `import.meta` with `{}`, making `import.meta.env` undefined — optional chaining (`import.meta.env?.`) prevents the `TypeError`.

## [1.0.0-beta.0] - 2026-08-24

Initial beta release of `@auth0/auth0-react-router` — an Auth0 authentication SDK for [React Router v7](https://reactrouter.com/) framework mode applications.
Expand Down
10 changes: 5 additions & 5 deletions docs/classes/client.Auth0ErrorBoundary.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">Auth0ErrorBoundary</span></li></ul></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/9ea891e46dd77db28fa96304742bb92db7522a0d/src/client/components.tsx#L150">client/components.tsx:150</a></li></ul></aside>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/1fd42524cb9f53af456ce736e9d444777e504c72/src/client/components.tsx#L150">client/components.tsx:150</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 @@ -57,7 +57,7 @@ <h4 class="tsd-returns-title">Returns <a href="" class="tsd-signature-type tsd-k
Auth0ErrorBoundaryState
&gt;.constructor</p>
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/9ea891e46dd77db28fa96304742bb92db7522a0d/src/client/components.tsx#L154">client/components.tsx:154</a></li></ul></aside></div></li></ul></section></section></details>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/1fd42524cb9f53af456ce736e9d444777e504c72/src/client/components.tsx#L154">client/components.tsx:154</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-Methods"><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="methods-1">Methods<a href="#methods-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 @@ -78,7 +78,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
<p>Overrides Component.componentDidCatch</p>
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/9ea891e46dd77db28fa96304742bb92db7522a0d/src/client/components.tsx#L168">client/components.tsx:168</a></li></ul></aside></div></li></ul></section>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/1fd42524cb9f53af456ce736e9d444777e504c72/src/client/components.tsx#L168">client/components.tsx:168</a></li></ul></aside></div></li></ul></section>
<section class="tsd-panel tsd-member">
<h3 class="tsd-anchor-link" id="render"><span>render</span><a href="#render" 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>
<ul class="tsd-signatures">
Expand All @@ -88,7 +88,7 @@ <h3 class="tsd-anchor-link" id="render"><span>render</span><a href="#render" ari
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ReactNode</span></h4><aside class="tsd-sources">
<p>Overrides Component.render</p>
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/9ea891e46dd77db28fa96304742bb92db7522a0d/src/client/components.tsx#L170">client/components.tsx:170</a></li></ul></aside></div></li></ul></section>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/1fd42524cb9f53af456ce736e9d444777e504c72/src/client/components.tsx#L170">client/components.tsx:170</a></li></ul></aside></div></li></ul></section>
<section class="tsd-panel tsd-member">
<h3 class="tsd-anchor-link" id="getderivedstatefromerror"><code class="tsd-tag">Static</code><span>get<wbr/>Derived<wbr/>State<wbr/>From<wbr/>Error</span><a href="#getderivedstatefromerror" 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>
<ul class="tsd-signatures">
Expand All @@ -101,7 +101,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<li><span><span class="tsd-kind-parameter">error</span>: <span class="tsd-signature-type">unknown</span></span></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Partial</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Auth0ErrorBoundaryState</span><span class="tsd-signature-symbol">&gt;</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/9ea891e46dd77db28fa96304742bb92db7522a0d/src/client/components.tsx#L159">client/components.tsx:159</a></li></ul></aside></div></li></ul></section></section></details></div>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/1fd42524cb9f53af456ce736e9d444777e504c72/src/client/components.tsx#L159">client/components.tsx:159</a></li></ul></aside></div></li></ul></section></section></details></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
8 changes: 4 additions & 4 deletions docs/classes/errors.Auth0Error.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h4>Hierarchy (<a href="../hierarchy.html#errors.Auth0Error">View Summary</a>)</
<li class="tsd-hierarchy-item"><a href="errors.InsufficientScopeError.html" class="tsd-signature-type tsd-kind-class">InsufficientScopeError</a></li>
<li class="tsd-hierarchy-item"><a href="errors.ConfigurationError.html" class="tsd-signature-type tsd-kind-class">ConfigurationError</a></li></ul></li></ul></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/9ea891e46dd77db28fa96304742bb92db7522a0d/src/errors/index.ts#L12">errors/index.ts:12</a></li></ul></aside>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/1fd42524cb9f53af456ce736e9d444777e504c72/src/errors/index.ts#L12">errors/index.ts:12</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 @@ -67,20 +67,20 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<h4 class="tsd-returns-title">Returns <a href="" class="tsd-signature-type tsd-kind-class">Auth0Error</a></h4><aside class="tsd-sources">
<p>Overrides Error.constructor</p>
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/9ea891e46dd77db28fa96304742bb92db7522a0d/src/errors/index.ts#L16">errors/index.ts:16</a></li></ul></aside></div></li></ul></section></section></details>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/1fd42524cb9f53af456ce736e9d444777e504c72/src/errors/index.ts#L16">errors/index.ts:16</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="code"><code class="tsd-tag">Abstract</code> <code class="tsd-tag">Readonly</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">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/9ea891e46dd77db28fa96304742bb92db7522a0d/src/errors/index.ts#L13">errors/index.ts:13</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/1fd42524cb9f53af456ce736e9d444777e504c72/src/errors/index.ts#L13">errors/index.ts:13</a></li></ul></aside></section>
<section class="tsd-panel tsd-member">
<h3 class="tsd-anchor-link" id="statuscode"><code class="tsd-tag">Abstract</code> <code class="tsd-tag">Readonly</code><span>status<wbr/>Code</span><a href="#statuscode" 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">statusCode</span><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/auth0-react-router/blob/9ea891e46dd77db28fa96304742bb92db7522a0d/src/errors/index.ts#L14">errors/index.ts:14</a></li></ul></aside></section></section></details></div>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/1fd42524cb9f53af456ce736e9d444777e504c72/src/errors/index.ts#L14">errors/index.ts:14</a></li></ul></aside></section></section></details></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
8 changes: 4 additions & 4 deletions docs/classes/errors.AuthenticationError.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h4>Hierarchy (<a href="../hierarchy.html#errors.AuthenticationError">View Summa
<ul class="tsd-hierarchy">
<li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">AuthenticationError</span></li></ul></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/9ea891e46dd77db28fa96304742bb92db7522a0d/src/errors/index.ts#L25">errors/index.ts:25</a></li></ul></aside>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/1fd42524cb9f53af456ce736e9d444777e504c72/src/errors/index.ts#L25">errors/index.ts:25</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 @@ -58,7 +58,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<h4 class="tsd-returns-title">Returns <a href="" class="tsd-signature-type tsd-kind-class">AuthenticationError</a></h4><aside class="tsd-sources">
<p>Inherited from <a href="errors.Auth0Error.html">Auth0Error</a>.<a href="errors.Auth0Error.html#constructor">constructor</a></p>
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/9ea891e46dd77db28fa96304742bb92db7522a0d/src/errors/index.ts#L16">errors/index.ts:16</a></li></ul></aside></div></li></ul></section></section></details>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/1fd42524cb9f53af456ce736e9d444777e504c72/src/errors/index.ts#L16">errors/index.ts:16</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>
Expand All @@ -67,13 +67,13 @@ <h3 class="tsd-anchor-link" id="code"><code class="tsd-tag">Readonly</code><span
<div class="tsd-signature"><span class="tsd-kind-property">code</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;authentication_error&quot;</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources">
<p>Overrides <a href="errors.Auth0Error.html">Auth0Error</a>.<a href="errors.Auth0Error.html#code">code</a></p>
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/9ea891e46dd77db28fa96304742bb92db7522a0d/src/errors/index.ts#L26">errors/index.ts:26</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/1fd42524cb9f53af456ce736e9d444777e504c72/src/errors/index.ts#L26">errors/index.ts:26</a></li></ul></aside></section>
<section class="tsd-panel tsd-member">
<h3 class="tsd-anchor-link" id="statuscode"><code class="tsd-tag">Readonly</code><span>status<wbr/>Code</span><a href="#statuscode" 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">statusCode</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">401</span></div><aside class="tsd-sources">
<p>Overrides <a href="errors.Auth0Error.html">Auth0Error</a>.<a href="errors.Auth0Error.html#statuscode">statusCode</a></p>
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/9ea891e46dd77db28fa96304742bb92db7522a0d/src/errors/index.ts#L27">errors/index.ts:27</a></li></ul></aside></section></section></details></div>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/1fd42524cb9f53af456ce736e9d444777e504c72/src/errors/index.ts#L27">errors/index.ts:27</a></li></ul></aside></section></section></details></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
8 changes: 4 additions & 4 deletions docs/classes/errors.BearerTokenError.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h4>Hierarchy (<a href="../hierarchy.html#errors.BearerTokenError">View Summary<
<ul class="tsd-hierarchy">
<li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">BearerTokenError</span></li></ul></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/9ea891e46dd77db28fa96304742bb92db7522a0d/src/errors/index.ts#L45">errors/index.ts:45</a></li></ul></aside>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/1fd42524cb9f53af456ce736e9d444777e504c72/src/errors/index.ts#L45">errors/index.ts:45</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 @@ -58,7 +58,7 @@ <h4 class="tsd-parameters-title">Parameters</h4>
<h4 class="tsd-returns-title">Returns <a href="" class="tsd-signature-type tsd-kind-class">BearerTokenError</a></h4><aside class="tsd-sources">
<p>Inherited from <a href="errors.Auth0Error.html">Auth0Error</a>.<a href="errors.Auth0Error.html#constructor">constructor</a></p>
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/9ea891e46dd77db28fa96304742bb92db7522a0d/src/errors/index.ts#L16">errors/index.ts:16</a></li></ul></aside></div></li></ul></section></section></details>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/1fd42524cb9f53af456ce736e9d444777e504c72/src/errors/index.ts#L16">errors/index.ts:16</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>
Expand All @@ -67,13 +67,13 @@ <h3 class="tsd-anchor-link" id="code"><code class="tsd-tag">Readonly</code><span
<div class="tsd-signature"><span class="tsd-kind-property">code</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;bearer_token_error&quot;</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources">
<p>Overrides <a href="errors.Auth0Error.html">Auth0Error</a>.<a href="errors.Auth0Error.html#code">code</a></p>
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/9ea891e46dd77db28fa96304742bb92db7522a0d/src/errors/index.ts#L46">errors/index.ts:46</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/1fd42524cb9f53af456ce736e9d444777e504c72/src/errors/index.ts#L46">errors/index.ts:46</a></li></ul></aside></section>
<section class="tsd-panel tsd-member">
<h3 class="tsd-anchor-link" id="statuscode"><code class="tsd-tag">Readonly</code><span>status<wbr/>Code</span><a href="#statuscode" 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">statusCode</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">401</span></div><aside class="tsd-sources">
<p>Overrides <a href="errors.Auth0Error.html">Auth0Error</a>.<a href="errors.Auth0Error.html#statuscode">statusCode</a></p>
<ul>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/9ea891e46dd77db28fa96304742bb92db7522a0d/src/errors/index.ts#L47">errors/index.ts:47</a></li></ul></aside></section></section></details></div>
<li>Defined in <a href="https://github.com/auth0/auth0-react-router/blob/1fd42524cb9f53af456ce736e9d444777e504c72/src/errors/index.ts#L47">errors/index.ts:47</a></li></ul></aside></section></section></details></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
Loading
Loading