New SDK packages: @toden/react 4.1.0, @toden/react-native 4.0.0 and toden_flutter 4.0.0
The web, React Native and Flutter SDKs are now published under the Toden name. The API is unchanged, so upgrading means swapping the package and changing your imports.
Added
@toden/react4.1.0 on npm:npm install @toden/react, with styles from@toden/react/styles.css. The entry points areVerification,useVerificationandVerificationError. See the Web SDK guide.@toden/react-native4.0.0 on npm, the first release under this name. See the React Native SDK guide.toden_flutter4.0.0 on pub.dev, the first release under this name. See the Flutter SDK guide.- A redesigned document camera. One top row holds back, the document and the side; an instruction shows what the camera needs; Upload, the shutter and Light sit along the bottom.
- Cut-off documents. When the capture check finds that a document runs off the photo, the person is asked to retake it, as they already are for the face and barcode checks.
- The cropper gains Rotate, which turns the photo a quarter at a time, and an upright box for a NIN slip. Its button reads “Use photo”.
- “Take a photo” opens the SDK’s own camera for proof of address, supporting documents and the entrance photo, on desktop as well as phones.
- Country and ID on one step. On the web, the person picks the country and the ID on the same screen. On React Native, the ID step and the country sheet now match the web.
Changed
- Each environment has its own host.
pk_test_keys go tohttps://sandbox-api.toden.coandpk_live_keys tohttps://api.toden.co. If you allowlist the SDKs’ traffic, allow both. - Android ML Kit flag. Apps that bundle the ML Kit models set
todenBundledMlKit(React Native: the rootbuild.gradle; Flutter:android/gradle.properties). The earliermyazaKycBundledMlKitstill works when the new one is not set.
What you need to do
Nothing breaks if you stay where you are, but the earlier packages receive no further releases.
- Web: remove
@myazahq/kyc-sdk-react, install@toden/react, and change your imports to@toden/reactand@toden/react/styles.css. - React Native: remove
@myazahq/kyc-sdk-react-native, install@toden/react-native, change your imports and theapp.jsonplugin entry, then rebuild the app (npx expo prebuildorpod install), because native code changed in 4.0.0. - Flutter: replace
myaza_kyc_sdk_flutterwithtoden_flutter: ^4.0.0, change your imports topackage:toden_flutter/toden_flutter.dart, then rebuild the app, because native code changed in 4.0.0. If yourAndroidManifest.xmldeclares the presence foreground service, change it toco.toden.flutter.PresenceForegroundService. See Upgrading from the earlier package. - The earlier names (
MyazaKYC,useMyazaKYC,KYCErrorand the rest) still work as deprecated aliases, so no other code change is needed.