diff --git a/.version b/.version index abcb527..ffbc993 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -1.0.0-beta.0 +1.0.0-beta.1 diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a17ea9..8ff6bb0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/docs/classes/client.Auth0ErrorBoundary.html b/docs/classes/client.Auth0ErrorBoundary.html index bc97706..df20368 100644 --- a/docs/classes/client.Auth0ErrorBoundary.html +++ b/docs/classes/client.Auth0ErrorBoundary.html @@ -22,7 +22,7 @@
StaticgetAbstract Readonlycode
Abstract ReadonlystatusReadonlystatusReadonlystatusReadonlystatusReadonlystatusReadonlystatusReadonlystatusReadonlystatusReadonlystatusOptional ReadonlyonReadonlystateImplementation of CookieHandler.getCookie
Implementation of CookieHandler.getCookies
Optionalopts: { returnTo?: string }When no session exists or the token cannot be retrieved.
500 — AUTH0_DOMAIN or AUTH0_AUDIENCE not set
When there is no active session to update.
Optional
OptionalrolesOptionalhttps://auth0.com/claims/roles'.
OptionalreturnOptionalreturnOptionalreturnWhere to redirect after a successful login. Defaults to the current URL.
The role name (or array of names) the user must have.
OptionalrolesThe user claim that holds the roles array.
OptionalappOptionalaudienceOptionalbeforeOption
requests) as it runs on every session write, not just at login.
OptionalclientOptionalclientOptionaldomainOptionalonOptional
OptionalscopeOptionalsecretOptionalOptionalcallback
OptionalloginOptionallogoutOptional<
The returnTo stored in appState during login takes precedence.
Optio
Useful for prompting for consent, forcing login, etc.
OptionalreturnOptional<
Falls back to the returnTo query parameter on the request URL, then '/'.
Optional<
Defaults to the app base URL.
OptionalRequired scope(s). Throws InsufficientScopeError (403) if missing.
Optional<
Defaults to the current request pathname.
OptionalappOptionalaudienceOptionalcontextOverride any other context values.
OptionalisDefaults to true when user or session is provided, false otherwise.
OptionalisOptionalsessionOverride the full session object.
OptionaluserProvide a specific user. If omitted, a mock user is used when authenticated.
Optionaldomain
OptionalidOptionalrefreshOptionalemail
Optionalemail_OptionalnameOptionalpictureOptionalscopeOptionalaudienceOptionalscopeConst
Fallback UI. Pass a function to receive the error.