Releases: auth0/react-native-auth0
Releases · auth0/react-native-auth0
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:
requireLocalAuthenticationmethod 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:
requireLocalAuthenticationmethod is no longer available as part of theCredentialsManagerclass or theuseAuth0Hook from v4 of the SDK. Refer below sections on how to enable authentication before obtaining credentials now.
Changes:
- Updated the
Auth0class 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])
v3.0.0
v3.0.0 (2023-08-10)
💡 Check the Migration Guide to understand the changes required to migrate your application to v3.
Added
- Credentials are returned as part of authorize methods in hooks
- Support for organizations name in login
- Added sample app in the repository
- Expo plugin is updated to latest version
- Added 'openid profile email' as mandatory scopes
- Option to
forceRefreshis added ingetCredentials - Added
hasValidCredentialsto hooks - More options to authorize using Hooks
authorizeWithSMSauthorizeWithEmailauthorizeWithOOBauthorizeWithOTPauthorizeWithRecoveryCode
Changed
- Custom Scheme is now optional in Expo
- Migrated the codebase to Typescript
- Use Native SDKs (Auth0.Android and Auth0.Swift) for Web Authentication
Credentialsobject in Android will returnexpiresIninstead ofexpiresAtmax_ageparameter is changed tomaxAgeinWebAuth.authorize()customSchemeis now part ofClearSessionOptionsinstead ofClearSessionParametersinclearSession- Minimum supported version for iOS is bumped to 13
- Revoke Token and Change Password now return
voidinstead of an empty object
Removed
- Removed the
typeproperty returned in theCredentialsobject in Android. UsetokenTypeinstead. skipLegacyListenerhas been removed inauthorizeandclearSession
Security
- chore(deps): bump word-wrap from 1.2.3 to 1.2.4 #682 (dependabot[bot])
- chore: Expand
.semgrepignoreexclusions to tests #679 (evansims) - chore(deps-dev): bump semver from 6.3.0 to 7.5.2 #657 (dependabot[bot])