Releases: wultra/react-native-powerauth-mobile-sdk
Releases · wultra/react-native-powerauth-mobile-sdk
2.3.0
What's new
Important notice
- If you already using older versions of SDK, then please read our Migration instructions.
💊 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 containsinstanceId
property (#113)- Methods returning
bool
now returns alwaystrue
orfalse
(#114) - Added several debug features to SDK (#116)
- SDK now use
undefined
instead ofnull
(#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
2.2.5
Release 2.2.4
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
Release 2.2.2
Release 2.2.1
What's new
💊 Fixes
- Always return
PowerAuthError
class in case of failure (#66)
What's new in native SDK
💊 Fixes
- Fixed rare crash in weak array on iOS (wultra/powerauth-mobile-sdk#403)
Native PowerAuthSDK version
⏫ 1.6.1
Release 2.2.0
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 containsdomain
anddescription
variables on iOS.PowerAuthErrorCode
enum now contains newAUTHENTICATION_ERROR
constant, reported in case that 401 HTTP status code is returned from the server.- The meaning of
NETWORK_ERROR
andRESPONSE_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. ThePowerAuthError.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. ThePowerAuthError.errorData
dictionary contains the same values as forRESPONSE_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
Release 2.1.0
What's new
🚀 Features
- Moved to the native SDK v
1.6.0
PowerAuthOtpUtil
renamed toPowerAuthActivationCodeUtil
- 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
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