v2.2.1 (2023-08-22)
Fixed
- bump auth0-spa-js to latest version #560 (frederikprijck)
v2.2.0 (2023-07-13)
Added
- Support Organization Name #552 (frederikprijck)
Fixed
- Fix incorrect logout jsdocx example #551 (frederikprijck)
- Fix inconsistent logout function types #548 (frederikprijck)
v2.1.1 (2023-06-14)
Changed
- bump SPA-JS to the latest version #543 (frederikprijck)
v2.1.0 (2023-05-05)
Added
- Adding onBeforeAuthentication to the withAuthenticationRequired HOC #534 (stephenkelzer)
v2.0.2 (2023-04-26)
Fixed
v2.0.1 (2023-02-22)
Fixed
- Support redirectUri again in a deprecated way #507 (frederikprijck)
v2.0.0 (2023-01-19)
Auth0-React v2 includes many significant changes compared to v1:
- Removal of polyfills from bundles
- Introduction of
authorizationParams
andlogoutParams
for properties sent to Auth0 - Removal of
buildAuthorizeUrl
andbuildLogoutUrl
- Removal of
redirectMethod
onloginWithRedirect
in favour ofopenUrl
- Removal of
localOnly
fromlogout
in favour ofopenUrl
- Renaming of
ignoreCache
tocacheMode
and introduction ofcache-only
- Use
application/x-www-form-urlencoded
by default - Do not fallback to refreshing tokens via iframe by default
- Changes to default scopes and removal of
advancedOptions.defaultScope
- Removal of
claimCheck
onwithAuthenticationRequired
As with any major version bump, v2 of Auth0-React contains a set of breaking changes. Please review the migration guide thoroughly to understand the changes required to migrate your application to v2.
v2.0.0-beta.0 (2022-12-12)
Auth0-React v2 includes many significant changes compared to v1:
- Removal of polyfills from bundles
- Introduction of
authorizationParams
andlogoutParams
for properties sent to Auth0 - Removal of
buildAuthorizeUrl
andbuildLogoutUrl
- Removal of
redirectMethod
onloginWithRedirect
in favour ofopenUrl
- Removal of
localOnly
fromlogout
in favour ofopenUrl
- Renaming of
ignoreCache
tocacheMode
and introduction ofcache-only
- Use
application/x-www-form-urlencoded
by default - Do not fallback to refreshing tokens via iframe by default
- Changes to default scopes and removal of
advancedOptions.defaultScope
- Removal of
claimCheck
onwithAuthenticationRequired
As with any major version bump, v2 of Auth0-React contains a set of breaking changes. Please review the migration guide thoroughly to understand the changes required to migrate your application to v2.
v1.12.1 (2023-01-12)
Security
- Upgrade @auth0/auth0-spa-js to 1.22.6 #468 (ewanharris)
This patch release is identical to 1.12.0
but has been released to ensure tooling no longer detects a vulnerable version of jsonwebtoken being used by @auth0/auth0-spa-js
.
Even though 1.22.5
of @auth0/auth0-spa-js
was not vulnerable for the related CVE because of the fact that jsonwebtoken
is a devDependency of @auth0/auth0-spa-js
, we are cutting a release to ensure build tools no longer report our SDK's that use @auth0/auth0-spa-js
as vulnerable to the mentioned CVE.
v1.12.0 (2022-10-12)
Added
- [SDK-3666] Support multiple providers #416 (ewanharris)
v1.11.0 (2022-09-13)
Added
- Enrich onRedirectCallback method with User object (#400) #401 (devjmetivier)
v1.10.2 (2022-06-22)
Fixed
- Correctly extend Error for OAuthError #367 (mjbcopland)
v1.10.1 (2022-04-28)
Fixed
- Make sure handleRedirectCallback is only called once in StrictMode React 18 #355 (adamjmcgrath)
v1.10.0 (2022-04-19)
Added
- Update React and other deps #350 (adamjmcgrath)
Fixed
- appState is an optional argument #341 (adamjmcgrath)
v1.9.0 (2022-01-14)
Added
- Update to [email protected] #319 (adamjmcgrath)
- Memoize context value in auth0-provider #318 (claycoleman)
Fixed
- Avoid potential multiple invocations of loginWithRedirect #311 (kweiberth)
- Add connection property to Auth0ProviderOptions #283 (stevehobbsdev)
v1.8.0 (2021-09-20)
Added
- Bump Auth0-SPA-JS to 1.18.0 #279 (adamjmcgrath)
v1.7.0 (2021-09-06)
Added
- Bump SPA JS to 1.17.1 #270 (adamjmcgrath)
v1.6.0 (2021-07-14)
Added
- [SDK-2603] Expose custom caching options from Auth0 SPA SDK #255 (stevehobbsdev)
v1.5.0 (2021-05-05)
Added
- Expose
handleRedirectCallback
#233 (stevehobbsdev) - Add TUser type param to useAuth0 hook #230 (Jameskmonger)
Changed
Fixed
- Check for state along with error param #231 (adamjmcgrath)
v1.4.0 (2021-03-26)
Added
- Update SPA JS, add organizations docs and example #211 (adamjmcgrath)
Fixed
- Update auth state on access token fail #219 (adamjmcgrath)
- Updates to user should not update memoized getAccessToken* methods #213 (adamjmcgrath)
v1.3.0 (2021-02-16)
Added
Changed
isLoading
should default totrue
even when doing SSR #193 (adamjmcgrath)
v1.2.0 (2020-11-04)
Added
- [SDK-2106] Memoize auth methods #150 (adamjmcgrath)
- Add react fast refresh support #151 (Idered)
- [SDK-2105] Skip redirect callback option #148 (adamjmcgrath)
- [SDK-2104] Update peerDeps to account for react 17 #147 (adamjmcgrath)
- [SDK-1938] Update the user/isAuthenticated state after getting a token #146 (adamjmcgrath)
- Add config argument to getAccessTokenWithPopup #141 (ygist)
- Export AppState type for custom onRedirectCallback's #120 (adamjmcgrath)
v1.1.0 (2020-09-17)
Added
- [SDK-1927] Check for state param in callback url #107 (adamjmcgrath)
- Support react v16.11 #99 (tiagob)
Fixed
- [SDK-1836] Update state for local logouts #81 (adamjmcgrath)
- Add config argument to loginWithPopup #77 (Aulos)
v1.0.0 (2020-06-19)
Breaking Change
- Allow custom
returnTo
inwithAuthenticationRequired
#41 (adamjmcgrath)
v0.4.0 (2020-06-05)
Added
- [SDK-1697] Add custom user agent to spa js #28 (adamjmcgrath)
- Use
checkSession
to start login #27 (adamjmcgrath) - [SDK-1690] Add generated API docs #25 (adamjmcgrath)
v0.3.1 (2020-06-01)
Fixed
- getToken methods were being called in the wrong scope #24 (adamjmcgrath)
v0.3.0 (2020-05-29)
Added
- [SDK-1641] Add SSR support #17 (adamjmcgrath)
Breaking Changes
- [SDK-1694] Camel case props #22 (adamjmcgrath)
- [SDK-1693] Renames some init props #21 (adamjmcgrath)
v0.2.0 (2020-05-20)
Added
- [SDK-1642] Add missing methods from SPA JS #11 (adamjmcgrath)
- [SDK-1582] Normalize the auth0 error and add error handling to the basic example #10 (adamjmcgrath)
Changed
- Rename auth prop to prevent clashes and align with public api #14 (adamjmcgrath)
- Bundle SPA JS with the SDK for easier install #13 (adamjmcgrath)
v0.1.0 (2020-05-08)
Added
- [SDK-1580][SDK-1581] Add withAuth and withLoginRequired #7 (adamjmcgrath)
- [SDK-1583] Setup basic README for Early Access #6 (adamjmcgrath)
- [SDK-1577][SDK-1578] Add login functionality #5 (adamjmcgrath)
- [SDK-1576] Linting #4 (adamjmcgrath)
- [SDK-1572] Added CircleCI config #3 (Widcket)
- [SDK-1568] Set up unit tests #2 (adamjmcgrath)
- [SDK-1570][SDK-1571] Setup dev environment and build targets #1 (adamjmcgrath)