Skip to content

Releases: auth0/react-native-auth0

v4.0.0

28 Nov 06:58
1b902ca
Compare
Choose a tag to compare

Full changelog

💡 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 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

05 Aug 14:19
3420a2c
Compare
Choose a tag to compare
v4.0.0-beta.0 Pre-release
Pre-release

Breaking Changes:

  • requireLocalAuthentication method is no longer available as part of the CredentialsManager class or the useAuth0 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

09 May 12:56
8a126fa
Compare
Choose a tag to compare

Fixed

  • chore: upgraded dependency on Auth0.swift to 2.7.2 #895 (desusai7)

Security

v3.2.0

26 Apr 09:47
02188a2
Compare
Choose a tag to compare

Added

v3.1.0

07 Dec 15:57
fedd07c
Compare
Choose a tag to compare

Added

Fixed

v3.0.2

06 Oct 10:30
9156294
Compare
Choose a tag to compare

Fixed

Security

v3.0.1

16 Aug 10:15
982850e
Compare
Choose a tag to compare

Fixed

  • Make authorize and clearSession parameters optional #701 (poovamraj)

Security

v3.0.0

10 Aug 10:01
2d91f47
Compare
Choose a tag to compare

v3.0.0 (2023-08-10)

Full Changelog

💡 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 in getCredentials
  • 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 return expiresIn instead of expiresAt
  • max_age parameter is changed to maxAge in WebAuth.authorize()
  • customScheme is now part of ClearSessionOptions instead of ClearSessionParameters in clearSession
  • 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 the Credentials object in Android. Use tokenType instead.
  • skipLegacyListener has been removed in authorize and clearSession

Security

v3.0.0-beta.3

11 Jul 13:07
a2539d5
Compare
Choose a tag to compare
v3.0.0-beta.3 Pre-release
Pre-release

v3.0.0-beta.3 (2023-07-11)

Full Changelog

Added

v3.0.0-beta.2

10 Jul 10:34
04157b2
Compare
Choose a tag to compare
v3.0.0-beta.2 Pre-release
Pre-release

v3.0.0-beta.2 (2023-07-10)

Full Changelog

💡 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 in getCredentials
  • 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 return expiresIn instead of expiresAt
  • max_age parameter is changed to maxAge in WebAuth.authorize()
  • customScheme is now part of ClearSessionOptions instead of ClearSessionParameters in clearSession
  • 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 the Credentials object in Android. Use tokenType instead.
  • skipLegacyListener has been removed in authorize and clearSession

Supported Versions

  • Minimum supported version for iOS is bumped to 13
  • Minimum supported version for Expo is bumped to 48