Releases: auth0/react-native-auth0
Releases · auth0/react-native-auth0
v4.3.0
Added
- Added webAuth cancel for ios to prevent active transaction errors #1063 (pmathew92)
- Update FAQ explaning workaround when browser gets killed when going t… #1052 (mateoguzmana)
Fixed
Security
v4.2.0
v4.1.0
v4.0.0
💡 Check the Migration Guide to understand the changes required to migrate your application to v4.
💡 Check the v4.0.0-beta.0 to understand other major changes .
- BREAKING CHANGE:
requireLocalAuthentication
method is no longer available as part of the CredentialsManager class or the useAuth0 Hook from v4 of the SDK. Refer Migration Guide for more details.
Added
v4.0.0-beta.0
Breaking Changes:
requireLocalAuthentication
method is no longer available as part of theCredentialsManager
class or theuseAuth0
Hook from v4 of the SDK. Refer below sections on how to enable authentication before obtaining credentials now.
Changes:
- Updated the
Auth0
class constructor to accept a new parameter,LocalAuthenticationOptions
, for enabling authentication before obtaining credentials as shown below:
const localAuthOptions: LocalAuthenticationOptions = {
title: 'Authenticate to retreive your credentials',
subtitle: 'Please authenticate to continue',
description: 'We need to authenticate you to retrieve your credentials',
cancelTitle: 'Cancel',
evaluationPolicy: LocalAuthenticationStrategy.deviceOwnerWithBiometrics,
fallbackTitle: 'Use Passcode',
authenticationLevel: LocalAuthenticationLevel.strong,
deviceCredentialFallback: true,
}
const auth0 = new Auth0({ domain: config.domain, clientId: config.clientId, localAuthenticationOptions: localAuthOptions });
Modified the Auth0Provider
to accept LocalAuthenticationOptions
as a parameter to enable authentication before obtaining credentials.
const localAuthOptions: LocalAuthenticationOptions = {
title: 'Authenticate to retreive your credentials',
subtitle: 'Please authenticate to continue',
description: 'We need to authenticate you to retrieve your credentials',
cancelTitle: 'Cancel',
evaluationPolicy: LocalAuthenticationStrategy.deviceOwnerWithBiometrics,
fallbackTitle: 'Use Passcode',
authenticationLevel: LocalAuthenticationLevel.strong,
deviceCredentialFallback: true,
};
const App = () => {
return (
<Auth0Provider
domain={config.domain}
clientId={config.clientId}
localAuthenticationOptions={localAuthOptions}
>
{/* YOUR APP */}
</Auth0Provider>
);
};
export default App;
Added
v3.2.1
Fixed
Security
- chore(deps-dev): bump expo from 50.0.17 to 50.0.18 #902 (dependabot[bot])
- chore(deps-dev): bump @types/jest from 29.5.11 to 29.5.12 #901 (dependabot[bot])
- chore(deps-dev): bump @testing-library/react from 14.1.2 to 14.3.1 #900 (dependabot[bot])
- chore(deps-dev): bump pod-install from 0.1.39 to 0.2.2 #899 (dependabot[bot])
- chore(deps-dev): bump @types/react-native from 0.72.8 to 0.73.0 #898 (dependabot[bot])
- feat: bumped up react-native version to 0.74.1 and expo to 50.0.0 #889 (desusai7)
v3.2.0
Added
- Support for Apple's Privacy Manifest #887 (poovamraj)
- chore(deps-dev): bump @types/react from 17.0.71 to 17.0.73 #831 (dependabot[bot])
- chore(deps-dev): bump react-native from 0.72.7 to 0.73.0 #823 (dependabot[bot])
v3.1.0
v3.0.2
v3.0.1
Fixed
Security
- chore(deps): bump semver from 5.7.1 to 5.7.2 in /example #692 (dependabot[bot])
- chore(deps): bump fast-xml-parser from 4.2.4 to 4.2.7 in /example #693 (dependabot[bot])