Releases: auth0/react-native-auth0
Releases · auth0/react-native-auth0
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])
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
forceRefresh
is added ingetCredentials
- Added
hasValidCredentials
to hooks - More options to authorize using Hooks
authorizeWithSMS
authorizeWithEmail
authorizeWithOOB
authorizeWithOTP
authorizeWithRecoveryCode
Changed
- Custom Scheme is now optional in Expo
- Migrated the codebase to Typescript
- Use Native SDKs (Auth0.Android and Auth0.Swift) for Web Authentication
Credentials
object in Android will returnexpiresIn
instead ofexpiresAt
max_age
parameter is changed tomaxAge
inWebAuth.authorize()
customScheme
is now part ofClearSessionOptions
instead ofClearSessionParameters
inclearSession
- Minimum supported version for iOS is bumped to 13
- Revoke Token and Change Password now return
void
instead of an empty object
Removed
- Removed the
type
property returned in theCredentials
object in Android. UsetokenType
instead. skipLegacyListener
has been removed inauthorize
andclearSession
Security
- chore(deps): bump word-wrap from 1.2.3 to 1.2.4 #682 (dependabot[bot])
- chore: Expand
.semgrepignore
exclusions to tests #679 (evansims) - chore(deps-dev): bump semver from 6.3.0 to 7.5.2 #657 (dependabot[bot])
v3.0.0-beta.3
v3.0.0-beta.2
v3.0.0-beta.2 (2023-07-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
- Added sample app in the repository
- Expo plugin is updated to latest version
- Added 'openid profile email' as mandatory scopes
- Option to
forceRefresh
is added ingetCredentials
- Added
hasValidCredentials
to hooks - More options to authorize using Hooks
authorizeWithSMS
authorizeWithEmail
authorizeWithOOB
authorizeWithOTP
authorizeWithRecoveryCode
Changed
- Custom Scheme is now optional in Expo
- Migrated the codebase to Typescript
- Use Native SDKs (Auth0.Android and Auth0.Swift) for Web Authentication
Credentials
object in Android will returnexpiresIn
instead ofexpiresAt
max_age
parameter is changed tomaxAge
inWebAuth.authorize()
customScheme
is now part ofClearSessionOptions
instead ofClearSessionParameters
inclearSession
- Minimum supported version for iOS is bumped to 13
- Revoke Token and Change Password now return
void
instead of an empty object
Removed
- Removed the
type
property returned in theCredentials
object in Android. UsetokenType
instead. skipLegacyListener
has been removed inauthorize
andclearSession
Supported Versions
- Minimum supported version for iOS is bumped to 13
- Minimum supported version for Expo is bumped to 48