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