Skip to content

Releases: wultra/react-native-powerauth-mobile-sdk

2.3.0

04 Nov 09:44
Compare
Choose a tag to compare

What's new

Important notice

💊   Fixes & Improvements

  • Library no longer enforce an exact react-native verison. The dependency is set to >=0.64.
  • Export public objects from module (#100)
  • Proper let - const usage (#104)
  • Added E2E tests in form of "testapp" (#62, PR #108)
  • Removed demo application (#112)
  • Fixed signDataWithDevicePrivateKey() (#111)
  • Removed always true properties from PowerAuthToken (#119)
  • PowerAuth class now contains instanceId property (#113)
  • Methods returning bool now returns always true or false (#114)
  • Added several debug features to SDK (#116)
  • SDK now use undefined instead of null (#107)
  • Git repository no longer contains compiled JS (#102)
  • SDK now use native objects register to bridge its native objects to JS (#95, PRs #125, #129)
  • Added support for secure passwords (#127)
  • Add function to validate activation QR code (#130)
  • Better PowerAuthAuthentication instantiation (#96)
  • Added PIN strength tester (#136)
  • Biometry dialog is now displayed on iOS simulator (#134)

Native PowerAuthSDK version

➡️   1.7.5 (full list of changes: 1.7.0, 1.7.2, 1.7.3, 1.7.4)

2.2.5

19 Sep 18:40
Compare
Choose a tag to compare

What's new

💊   Fixes

  • Updated native PowerAuth SDK
  • Fixed build on Xcode 14
  • iOS deployment target changed to 11.0

Native PowerAuthSDK version

➡️   1.6.6

Release 2.2.4

26 Jul 11:24
Compare
Choose a tag to compare

What's new

💊   Fixes

  • Fixed iOS build dependency on native PowerAuth SDK to 1.6.5

Native PowerAuthSDK version

➡️   1.6.5

Release 2.2.3

21 Jul 11:51
Compare
Choose a tag to compare

What's new

💊   Fixes

  • Updated native PowerAuth SDK

Native PowerAuthSDK version

➡️   1.6.5

Release 2.2.2

22 Oct 09:06
Compare
Choose a tag to compare

What's new

💊   Fixes

  • Getting rid of the requiresMainQueueSetup warning on iOS (#68 , thx @vonovak )

Native PowerAuthSDK version

➡️   1.6.1

Release 2.2.1

30 Aug 18:12
Compare
Choose a tag to compare

What's new

💊   Fixes

  • Always return PowerAuthError class in case of failure (#66)

What's new in native SDK

💊   Fixes

Native PowerAuthSDK version

⏫   1.6.1

Release 2.2.0

17 Aug 12:39
Compare
Choose a tag to compare

What's new

🚀   Features

  • Errors reported from failed REST API calls are now unified between the platforms.
  • Support for advanced configuration. See configuration documentation.

💊   Fixes

  • Documentation now contains information that call invokes HTTP request to remote REST API (#38)
  • Errors reported from failed REST API calls are now unified between the platforms (#55)
  • Improved thread safety (#60)

⚠️   Compatibility warning

In case that internal HTTP request failed, then the error reported from native code back to TS is unified across the platforms. That means that you no longer need to digg deep into the platform specific returned object. The following changes has been done in the errors reported:

  • PowerAuthError no longer contains domain and description variables on iOS.
  • PowerAuthErrorCode enum now contains new AUTHENTICATION_ERROR constant, reported in case that 401 HTTP status code is returned from the server.
  • The meaning of NETWORK_ERROR and RESPONSE_ERROR is now unified across the platforms:
    • PowerAuthErrorCode.NETWORK_ERROR is now returned in case that HTTP connection failed (in case of timeout, network is not reachable, etc.)
    • PowerAuthErrorCode.RESPONSE_ERROR is now returned when non-200 HTTP status code is returned from the server. The PowerAuthError.errorData dictionary contains the following values:
      • httpStatusCode - Number with exact value of the HTTP status code.
      • serverResponseCode - Error code as defined in standard PowerAuth RESTful API error response.
      • serverResponseMessage - Error message as defined in standard PowerAuth RESTful API error response.
      • responseBody - String with JSON response body.
      • currentRecoveryPukIndex - (optional) Number with current recovery PUK index, in case that activation recovery failed.
    • PowerAuthErrorCode.AUTHENTICATION_ERROR is returned when 401 HTTP status code is returned from the server. The PowerAuthError.errorData dictionary contains the same values as for RESPONSE_ERROR.

What's new in native SDK

🚀   Features

  • There are no new features in native SDK

💊   Fixes

  • There are no fixes in native SDK

Native PowerAuthSDK version

⏫   1.6.0

Release 2.1.1

22 Jun 12:32
Compare
Choose a tag to compare

What's new

💊   Fixes

  • Fixed biometric authentication on Android (#52)

Release 2.1.0

28 May 08:27
Compare
Choose a tag to compare

What's new

🚀   Features

  • Moved to the native SDK v 1.6.0
  • PowerAuthOtpUtil renamed to PowerAuthActivationCodeUtil
  • Constants in PowerAuthErrorCode are now matching new android native SDK naming
  • React Native 0.64.1 is now required (to support Xcode 12.5)

💊   Fixes

  • Flipper is now supported again (#29)

⚠️   Compatibility warning

PowerAuthOtpUtil was renamed to PowerAuthActivationCodeUtil. Cases in enums PowerAuthErrorCode and PowerAuthActivationState changed.

NEW CODE (2.1.x):

import {PowerAuthActivationCodeUtil} from 'react-native-powerauth-mobile-sdk/lib/PowerAuthActivationCodeUtil';
import {PowerAuthActivationState} from 'react-native-powerauth-mobile-sdk/lib/model/PowerAuthActivationState';
import {PowerAuthErrorCode} from 'react-native-powerauth-mobile-sdk/lib/model/PowerAuthError';

try {
  let valid = await PowerAuthActivationCodeUtil.validateActivationCode("AAAA-AAAA-AAAA-AAAA");
  let isActive = (await this.powerAuth.fetchActivationStatus()).state == PowerAuthActivationState.ACTIVE;
} catch(e) {
  let isMissingActivation = e.code == PowerAuthErrorCode.MISSING_ACTIVATION;
}

OLD CODE (2.0.x):

import {PowerAuthOtpUtil} from 'react-native-powerauth-mobile-sdk/lib/PowerAuthOtpUtil';
import {PA2ActivationState} from 'react-native-powerauth-mobile-sdk/lib/model/PA2ActivationState';
import {PowerAuthErrorCode} from 'react-native-powerauth-mobile-sdk/lib/model/PowerAuthError';

try {
  let valid = await PowerAuthOtpUtil.validateActivationCode("AAAA-AAAA-AAAA-AAAA");
  let isActive = (await this.powerAuth.fetchActivationStatus()).state == PA2ActivationState.PA2ActivationState_Active;
} catch(e) {
  let isMissingActivation = e.code == PowerAuthErrorCode.PA2ErrorCodeMissingActivation;
}

What's new in native SDK

🚀   Features

  • Android: Jetpack libraries are used instead of the deprecated support library. This is most important for biometric authentication
  • Android: StrongBox is no longer enabled by default
  • Android: Keychain is no longer encrypted on very old Huawei devices

💊   Fixes

  • Android: Fixed possible deadlock after biometric authentication cancel
  • Android & iOS: Fixed possible tokens inconsistency after re-activation
  • Android & iOS: C++ core now properly validate imported EC public key
  • Android: Execute heavy computational biometric authentication tasks on the background thread
  • iOS: Fixed implicit dependency on OpenSSL

Native PowerAuthSDK version

⏫   1.6.0

Release 2.0.0

11 May 13:23
Compare
Choose a tag to compare

What's new

🚀   Features

  • possibility to have multiple instances of PowerAuth (#37)

💊   Fixes

⚠️   Compatibility warning

PowerAuth is no longer a singleton. You'll need to update your code to migrate.

NEW CODE (2.0.x):

import { PowerAuth } from 'react-native-powerauth-mobile-sdk';

const powerAuth = new PowerAuth("your-app-activation");
await powerAuth.configure("appKey", "appSecret", "masterServerPublicKey", "https://your-powerauth-endpoint.com/", true);

OLD CODE (1.5.x):

import PowerAuth from 'react-native-powerauth-mobile-sdk';

await PowerAuth.configure("your-app-activation", "appKey", "appSecret", "masterServerPublicKey", "https://your-powerauth-endpoint.com/", false);

Native PowerAuthSDK version

➖   1.5.2