wultra / react-native-powerauth-mobile-sdk

React Native Mobile SDK for PowerAuth Protocol (ios, android)
Apache License 2.0
9 stars 3 forks source link

Add more features to `PowerAuthClientConfiguration` #173

Closed kober32 closed 6 months ago

kober32 commented 1 year ago

Right now, we support the following features in PowerAuthClientConfigurationType:

readonly enableUnsecureTraffic?: boolean
readonly connectionTimeout?: number
readonly readTimeout?: number

as seen here: https://github.com/wultra/react-native-powerauth-mobile-sdk/blob/develop/src/model/PowerAuthClientConfiguration.ts

This is only a subset of features that are available on native platforms, especially custom UserAgent and request interceptors are missing (iOS implementation).

We should add a custom UserAgent and some sort of interceptor to the RN implementation too, or at least some way to inject custom headers to requests.