@bytexbyte/berifyme-react-native-sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +79 -0
- package/lib/commonjs/BerifymeModal/MainModal.js +83 -0
- package/lib/commonjs/BerifymeModal/MainModal.js.map +1 -0
- package/lib/commonjs/BerifymeModal/index.js +357 -0
- package/lib/commonjs/BerifymeModal/index.js.map +1 -0
- package/lib/commonjs/api/api.js +726 -0
- package/lib/commonjs/api/api.js.map +1 -0
- package/lib/commonjs/components/AllSet.js +186 -0
- package/lib/commonjs/components/AllSet.js.map +1 -0
- package/lib/commonjs/components/AuthenticationLogs.js +75 -0
- package/lib/commonjs/components/AuthenticationLogs.js.map +1 -0
- package/lib/commonjs/components/AuthidLogin.js +68 -0
- package/lib/commonjs/components/AuthidLogin.js.map +1 -0
- package/lib/commonjs/components/AuthidOnboarding.js +66 -0
- package/lib/commonjs/components/AuthidOnboarding.js.map +1 -0
- package/lib/commonjs/components/ClearLogin.js +70 -0
- package/lib/commonjs/components/ClearLogin.js.map +1 -0
- package/lib/commonjs/components/ClearOnboarding.js +83 -0
- package/lib/commonjs/components/ClearOnboarding.js.map +1 -0
- package/lib/commonjs/components/Footer.js +40 -0
- package/lib/commonjs/components/Footer.js.map +1 -0
- package/lib/commonjs/components/IncodeOnBoarding.js +53 -0
- package/lib/commonjs/components/IncodeOnBoarding.js.map +1 -0
- package/lib/commonjs/components/IncodeProvider.js +161 -0
- package/lib/commonjs/components/IncodeProvider.js.map +1 -0
- package/lib/commonjs/components/Onboarding/Authid/AuthIdSelectType.js +133 -0
- package/lib/commonjs/components/Onboarding/Authid/AuthIdSelectType.js.map +1 -0
- package/lib/commonjs/components/Onboarding/Authid/idOrPassport.js +139 -0
- package/lib/commonjs/components/Onboarding/Authid/idOrPassport.js.map +1 -0
- package/lib/commonjs/components/Onboarding/Vender.js +264 -0
- package/lib/commonjs/components/Onboarding/Vender.js.map +1 -0
- package/lib/commonjs/components/SendSNS/index.js +385 -0
- package/lib/commonjs/components/SendSNS/index.js.map +1 -0
- package/lib/commonjs/components/SumsubLogin.js +58 -0
- package/lib/commonjs/components/SumsubLogin.js.map +1 -0
- package/lib/commonjs/components/SumsubOnboarding.js +58 -0
- package/lib/commonjs/components/SumsubOnboarding.js.map +1 -0
- package/lib/commonjs/components/TryAgainInModal.js +67 -0
- package/lib/commonjs/components/TryAgainInModal.js.map +1 -0
- package/lib/commonjs/components/VeriffLogin.js +68 -0
- package/lib/commonjs/components/VeriffLogin.js.map +1 -0
- package/lib/commonjs/components/VeriffOnboarding.js +68 -0
- package/lib/commonjs/components/VeriffOnboarding.js.map +1 -0
- package/lib/commonjs/components/VerifiedExternalPhoneNumber/index.js +306 -0
- package/lib/commonjs/components/VerifiedExternalPhoneNumber/index.js.map +1 -0
- package/lib/commonjs/components/VerifyWithPhoneNumber/NewUser.js +274 -0
- package/lib/commonjs/components/VerifyWithPhoneNumber/NewUser.js.map +1 -0
- package/lib/commonjs/components/VerifyWithPhoneNumber/User.js +366 -0
- package/lib/commonjs/components/VerifyWithPhoneNumber/User.js.map +1 -0
- package/lib/commonjs/components/VerifyWithPhoneNumber/biometrics.js +73 -0
- package/lib/commonjs/components/VerifyWithPhoneNumber/biometrics.js.map +1 -0
- package/lib/commonjs/components/YotiLogin.js +63 -0
- package/lib/commonjs/components/YotiLogin.js.map +1 -0
- package/lib/commonjs/components/YotiOnboarding.js +68 -0
- package/lib/commonjs/components/YotiOnboarding.js.map +1 -0
- package/lib/commonjs/components/biometrics/EnableBiometricsTypes.js +16 -0
- package/lib/commonjs/components/biometrics/EnableBiometricsTypes.js.map +1 -0
- package/lib/commonjs/components/biometrics/index.js +241 -0
- package/lib/commonjs/components/biometrics/index.js.map +1 -0
- package/lib/commonjs/components/incodeLogin.js +53 -0
- package/lib/commonjs/components/incodeLogin.js.map +1 -0
- package/lib/commonjs/enum/index.js +38 -0
- package/lib/commonjs/enum/index.js.map +1 -0
- package/lib/commonjs/environmentDomains.js +18 -0
- package/lib/commonjs/environmentDomains.js.map +1 -0
- package/lib/commonjs/index.js +14 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/phoneNumberProcessor.js +84 -0
- package/lib/commonjs/phoneNumberProcessor.js.map +1 -0
- package/lib/module/BerifymeModal/MainModal.js +78 -0
- package/lib/module/BerifymeModal/MainModal.js.map +1 -0
- package/lib/module/BerifymeModal/index.js +349 -0
- package/lib/module/BerifymeModal/index.js.map +1 -0
- package/lib/module/api/api.js +720 -0
- package/lib/module/api/api.js.map +1 -0
- package/lib/module/components/AllSet.js +179 -0
- package/lib/module/components/AllSet.js.map +1 -0
- package/lib/module/components/AuthenticationLogs.js +68 -0
- package/lib/module/components/AuthenticationLogs.js.map +1 -0
- package/lib/module/components/AuthidLogin.js +63 -0
- package/lib/module/components/AuthidLogin.js.map +1 -0
- package/lib/module/components/AuthidOnboarding.js +61 -0
- package/lib/module/components/AuthidOnboarding.js.map +1 -0
- package/lib/module/components/ClearLogin.js +65 -0
- package/lib/module/components/ClearLogin.js.map +1 -0
- package/lib/module/components/ClearOnboarding.js +78 -0
- package/lib/module/components/ClearOnboarding.js.map +1 -0
- package/lib/module/components/Footer.js +35 -0
- package/lib/module/components/Footer.js.map +1 -0
- package/lib/module/components/IncodeOnBoarding.js +48 -0
- package/lib/module/components/IncodeOnBoarding.js.map +1 -0
- package/lib/module/components/IncodeProvider.js +161 -0
- package/lib/module/components/IncodeProvider.js.map +1 -0
- package/lib/module/components/Onboarding/Authid/AuthIdSelectType.js +126 -0
- package/lib/module/components/Onboarding/Authid/AuthIdSelectType.js.map +1 -0
- package/lib/module/components/Onboarding/Authid/idOrPassport.js +134 -0
- package/lib/module/components/Onboarding/Authid/idOrPassport.js.map +1 -0
- package/lib/module/components/Onboarding/Vender.js +257 -0
- package/lib/module/components/Onboarding/Vender.js.map +1 -0
- package/lib/module/components/SendSNS/index.js +378 -0
- package/lib/module/components/SendSNS/index.js.map +1 -0
- package/lib/module/components/SumsubLogin.js +53 -0
- package/lib/module/components/SumsubLogin.js.map +1 -0
- package/lib/module/components/SumsubOnboarding.js +53 -0
- package/lib/module/components/SumsubOnboarding.js.map +1 -0
- package/lib/module/components/TryAgainInModal.js +62 -0
- package/lib/module/components/TryAgainInModal.js.map +1 -0
- package/lib/module/components/VeriffLogin.js +63 -0
- package/lib/module/components/VeriffLogin.js.map +1 -0
- package/lib/module/components/VeriffOnboarding.js +63 -0
- package/lib/module/components/VeriffOnboarding.js.map +1 -0
- package/lib/module/components/VerifiedExternalPhoneNumber/index.js +299 -0
- package/lib/module/components/VerifiedExternalPhoneNumber/index.js.map +1 -0
- package/lib/module/components/VerifyWithPhoneNumber/NewUser.js +267 -0
- package/lib/module/components/VerifyWithPhoneNumber/NewUser.js.map +1 -0
- package/lib/module/components/VerifyWithPhoneNumber/User.js +359 -0
- package/lib/module/components/VerifyWithPhoneNumber/User.js.map +1 -0
- package/lib/module/components/VerifyWithPhoneNumber/biometrics.js +67 -0
- package/lib/module/components/VerifyWithPhoneNumber/biometrics.js.map +1 -0
- package/lib/module/components/YotiLogin.js +58 -0
- package/lib/module/components/YotiLogin.js.map +1 -0
- package/lib/module/components/YotiOnboarding.js +63 -0
- package/lib/module/components/YotiOnboarding.js.map +1 -0
- package/lib/module/components/biometrics/EnableBiometricsTypes.js +12 -0
- package/lib/module/components/biometrics/EnableBiometricsTypes.js.map +1 -0
- package/lib/module/components/biometrics/index.js +236 -0
- package/lib/module/components/biometrics/index.js.map +1 -0
- package/lib/module/components/incodeLogin.js +48 -0
- package/lib/module/components/incodeLogin.js.map +1 -0
- package/lib/module/enum/index.js +34 -0
- package/lib/module/enum/index.js.map +1 -0
- package/lib/module/environmentDomains.js +14 -0
- package/lib/module/environmentDomains.js.map +1 -0
- package/lib/module/index.js +9 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/phoneNumberProcessor.js +80 -0
- package/lib/module/phoneNumberProcessor.js.map +1 -0
- package/lib/typescript/commonjs/App.d.ts +10 -0
- package/lib/typescript/commonjs/App.d.ts.map +1 -0
- package/lib/typescript/commonjs/babel.config.d.ts +2 -0
- package/lib/typescript/commonjs/babel.config.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +2 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/jest.config.d.ts +2 -0
- package/lib/typescript/commonjs/jest.config.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/BerifymeModal/MainModal.d.ts +11 -0
- package/lib/typescript/commonjs/lib/commonjs/BerifymeModal/MainModal.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/BerifymeModal/index.d.ts +10 -0
- package/lib/typescript/commonjs/lib/commonjs/BerifymeModal/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/api/api.d.ts +266 -0
- package/lib/typescript/commonjs/lib/commonjs/api/api.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/AllSet.d.ts +10 -0
- package/lib/typescript/commonjs/lib/commonjs/components/AllSet.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/AuthenticationLogs.d.ts +18 -0
- package/lib/typescript/commonjs/lib/commonjs/components/AuthenticationLogs.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/AuthidLogin.d.ts +11 -0
- package/lib/typescript/commonjs/lib/commonjs/components/AuthidLogin.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/AuthidOnboarding.d.ts +14 -0
- package/lib/typescript/commonjs/lib/commonjs/components/AuthidOnboarding.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/ClearLogin.d.ts +12 -0
- package/lib/typescript/commonjs/lib/commonjs/components/ClearLogin.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/ClearOnboarding.d.ts +12 -0
- package/lib/typescript/commonjs/lib/commonjs/components/ClearOnboarding.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/Footer.d.ts +4 -0
- package/lib/typescript/commonjs/lib/commonjs/components/Footer.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/IncodeOnBoarding.d.ts +11 -0
- package/lib/typescript/commonjs/lib/commonjs/components/IncodeOnBoarding.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/IncodeProvider.d.ts +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/IncodeProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/Onboarding/Authid/AuthIdSelectType.d.ts +7 -0
- package/lib/typescript/commonjs/lib/commonjs/components/Onboarding/Authid/AuthIdSelectType.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/Onboarding/Authid/idOrPassport.d.ts +8 -0
- package/lib/typescript/commonjs/lib/commonjs/components/Onboarding/Authid/idOrPassport.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/Onboarding/Vender.d.ts +8 -0
- package/lib/typescript/commonjs/lib/commonjs/components/Onboarding/Vender.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/SendSNS/index.d.ts +14 -0
- package/lib/typescript/commonjs/lib/commonjs/components/SendSNS/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/SumsubLogin.d.ts +11 -0
- package/lib/typescript/commonjs/lib/commonjs/components/SumsubLogin.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/SumsubOnboarding.d.ts +11 -0
- package/lib/typescript/commonjs/lib/commonjs/components/SumsubOnboarding.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/TryAgainInModal.d.ts +7 -0
- package/lib/typescript/commonjs/lib/commonjs/components/TryAgainInModal.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/VeriffLogin.d.ts +12 -0
- package/lib/typescript/commonjs/lib/commonjs/components/VeriffLogin.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/VeriffOnboarding.d.ts +12 -0
- package/lib/typescript/commonjs/lib/commonjs/components/VeriffOnboarding.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/VerifiedExternalPhoneNumber/index.d.ts +13 -0
- package/lib/typescript/commonjs/lib/commonjs/components/VerifiedExternalPhoneNumber/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/VerifyWithPhoneNumber/NewUser.d.ts +10 -0
- package/lib/typescript/commonjs/lib/commonjs/components/VerifyWithPhoneNumber/NewUser.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/VerifyWithPhoneNumber/User.d.ts +11 -0
- package/lib/typescript/commonjs/lib/commonjs/components/VerifyWithPhoneNumber/User.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/VerifyWithPhoneNumber/biometrics.d.ts +8 -0
- package/lib/typescript/commonjs/lib/commonjs/components/VerifyWithPhoneNumber/biometrics.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/YotiLogin.d.ts +11 -0
- package/lib/typescript/commonjs/lib/commonjs/components/YotiLogin.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/YotiOnboarding.d.ts +12 -0
- package/lib/typescript/commonjs/lib/commonjs/components/YotiOnboarding.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/biometrics/EnableBiometricsTypes.d.ts +5 -0
- package/lib/typescript/commonjs/lib/commonjs/components/biometrics/EnableBiometricsTypes.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/biometrics/index.d.ts +25 -0
- package/lib/typescript/commonjs/lib/commonjs/components/biometrics/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/components/incodeLogin.d.ts +11 -0
- package/lib/typescript/commonjs/lib/commonjs/components/incodeLogin.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/enum/index.d.ts +4 -0
- package/lib/typescript/commonjs/lib/commonjs/enum/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/environmentDomains.d.ts +8 -0
- package/lib/typescript/commonjs/lib/commonjs/environmentDomains.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/index.d.ts +6 -0
- package/lib/typescript/commonjs/lib/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/commonjs/phoneNumberProcessor.d.ts +8 -0
- package/lib/typescript/commonjs/lib/commonjs/phoneNumberProcessor.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/BerifymeModal/MainModal.d.ts +11 -0
- package/lib/typescript/commonjs/lib/module/BerifymeModal/MainModal.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/BerifymeModal/index.d.ts +10 -0
- package/lib/typescript/commonjs/lib/module/BerifymeModal/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/api/api.d.ts +265 -0
- package/lib/typescript/commonjs/lib/module/api/api.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/AllSet.d.ts +10 -0
- package/lib/typescript/commonjs/lib/module/components/AllSet.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/AuthenticationLogs.d.ts +17 -0
- package/lib/typescript/commonjs/lib/module/components/AuthenticationLogs.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/AuthidLogin.d.ts +11 -0
- package/lib/typescript/commonjs/lib/module/components/AuthidLogin.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/AuthidOnboarding.d.ts +14 -0
- package/lib/typescript/commonjs/lib/module/components/AuthidOnboarding.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/ClearLogin.d.ts +12 -0
- package/lib/typescript/commonjs/lib/module/components/ClearLogin.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/ClearOnboarding.d.ts +12 -0
- package/lib/typescript/commonjs/lib/module/components/ClearOnboarding.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/Footer.d.ts +4 -0
- package/lib/typescript/commonjs/lib/module/components/Footer.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/IncodeOnBoarding.d.ts +11 -0
- package/lib/typescript/commonjs/lib/module/components/IncodeOnBoarding.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/IncodeProvider.d.ts +1 -0
- package/lib/typescript/commonjs/lib/module/components/IncodeProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/Onboarding/Authid/AuthIdSelectType.d.ts +7 -0
- package/lib/typescript/commonjs/lib/module/components/Onboarding/Authid/AuthIdSelectType.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/Onboarding/Authid/idOrPassport.d.ts +8 -0
- package/lib/typescript/commonjs/lib/module/components/Onboarding/Authid/idOrPassport.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/Onboarding/Vender.d.ts +8 -0
- package/lib/typescript/commonjs/lib/module/components/Onboarding/Vender.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/SendSNS/index.d.ts +14 -0
- package/lib/typescript/commonjs/lib/module/components/SendSNS/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/SumsubLogin.d.ts +11 -0
- package/lib/typescript/commonjs/lib/module/components/SumsubLogin.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/SumsubOnboarding.d.ts +11 -0
- package/lib/typescript/commonjs/lib/module/components/SumsubOnboarding.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/TryAgainInModal.d.ts +7 -0
- package/lib/typescript/commonjs/lib/module/components/TryAgainInModal.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/VeriffLogin.d.ts +12 -0
- package/lib/typescript/commonjs/lib/module/components/VeriffLogin.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/VeriffOnboarding.d.ts +12 -0
- package/lib/typescript/commonjs/lib/module/components/VeriffOnboarding.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/VerifiedExternalPhoneNumber/index.d.ts +13 -0
- package/lib/typescript/commonjs/lib/module/components/VerifiedExternalPhoneNumber/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/VerifyWithPhoneNumber/NewUser.d.ts +10 -0
- package/lib/typescript/commonjs/lib/module/components/VerifyWithPhoneNumber/NewUser.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/VerifyWithPhoneNumber/User.d.ts +11 -0
- package/lib/typescript/commonjs/lib/module/components/VerifyWithPhoneNumber/User.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/VerifyWithPhoneNumber/biometrics.d.ts +7 -0
- package/lib/typescript/commonjs/lib/module/components/VerifyWithPhoneNumber/biometrics.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/YotiLogin.d.ts +11 -0
- package/lib/typescript/commonjs/lib/module/components/YotiLogin.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/YotiOnboarding.d.ts +12 -0
- package/lib/typescript/commonjs/lib/module/components/YotiOnboarding.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/biometrics/EnableBiometricsTypes.d.ts +3 -0
- package/lib/typescript/commonjs/lib/module/components/biometrics/EnableBiometricsTypes.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/biometrics/index.d.ts +30 -0
- package/lib/typescript/commonjs/lib/module/components/biometrics/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/components/incodeLogin.d.ts +11 -0
- package/lib/typescript/commonjs/lib/module/components/incodeLogin.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/enum/index.d.ts +3 -0
- package/lib/typescript/commonjs/lib/module/enum/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/environmentDomains.d.ts +7 -0
- package/lib/typescript/commonjs/lib/module/environmentDomains.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/index.d.ts +7 -0
- package/lib/typescript/commonjs/lib/module/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/lib/module/phoneNumberProcessor.d.ts +7 -0
- package/lib/typescript/commonjs/lib/module/phoneNumberProcessor.d.ts.map +1 -0
- package/lib/typescript/commonjs/metro.config.d.ts +3 -0
- package/lib/typescript/commonjs/metro.config.d.ts.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/BerifymeModal/MainModal.d.ts +12 -0
- package/lib/typescript/commonjs/src/BerifymeModal/MainModal.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/BerifymeModal/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/BerifymeModal/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/api/api.d.ts +484 -0
- package/lib/typescript/commonjs/src/api/api.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/AllSet.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/AllSet.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/AuthenticationLogs.d.ts +20 -0
- package/lib/typescript/commonjs/src/components/AuthenticationLogs.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/AuthidLogin.d.ts +13 -0
- package/lib/typescript/commonjs/src/components/AuthidLogin.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/AuthidOnboarding.d.ts +16 -0
- package/lib/typescript/commonjs/src/components/AuthidOnboarding.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ClearLogin.d.ts +14 -0
- package/lib/typescript/commonjs/src/components/ClearLogin.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ClearOnboarding.d.ts +14 -0
- package/lib/typescript/commonjs/src/components/ClearOnboarding.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Footer.d.ts +4 -0
- package/lib/typescript/commonjs/src/components/Footer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/IncodeOnBoarding.d.ts +13 -0
- package/lib/typescript/commonjs/src/components/IncodeOnBoarding.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/IncodeProvider.d.ts +1 -0
- package/lib/typescript/commonjs/src/components/IncodeProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Onboarding/Authid/AuthIdSelectType.d.ts +7 -0
- package/lib/typescript/commonjs/src/components/Onboarding/Authid/AuthIdSelectType.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Onboarding/Authid/idOrPassport.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/Onboarding/Authid/idOrPassport.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/Onboarding/Vender.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/Onboarding/Vender.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/SendSNS/index.d.ts +17 -0
- package/lib/typescript/commonjs/src/components/SendSNS/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/SumsubLogin.d.ts +13 -0
- package/lib/typescript/commonjs/src/components/SumsubLogin.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/SumsubOnboarding.d.ts +13 -0
- package/lib/typescript/commonjs/src/components/SumsubOnboarding.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/TryAgainInModal.d.ts +7 -0
- package/lib/typescript/commonjs/src/components/TryAgainInModal.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/VeriffLogin.d.ts +14 -0
- package/lib/typescript/commonjs/src/components/VeriffLogin.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/VeriffOnboarding.d.ts +14 -0
- package/lib/typescript/commonjs/src/components/VeriffOnboarding.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/VerifiedExternalPhoneNumber/index.d.ts +16 -0
- package/lib/typescript/commonjs/src/components/VerifiedExternalPhoneNumber/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/VerifyWithPhoneNumber/NewUser.d.ts +12 -0
- package/lib/typescript/commonjs/src/components/VerifyWithPhoneNumber/NewUser.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/VerifyWithPhoneNumber/User.d.ts +13 -0
- package/lib/typescript/commonjs/src/components/VerifyWithPhoneNumber/User.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/VerifyWithPhoneNumber/biometrics.d.ts +9 -0
- package/lib/typescript/commonjs/src/components/VerifyWithPhoneNumber/biometrics.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/YotiLogin.d.ts +13 -0
- package/lib/typescript/commonjs/src/components/YotiLogin.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/YotiOnboarding.d.ts +14 -0
- package/lib/typescript/commonjs/src/components/YotiOnboarding.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/biometrics/EnableBiometricsTypes.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/biometrics/EnableBiometricsTypes.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/biometrics/index.d.ts +35 -0
- package/lib/typescript/commonjs/src/components/biometrics/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/incodeLogin.d.ts +13 -0
- package/lib/typescript/commonjs/src/components/incodeLogin.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/enum/index.d.ts +30 -0
- package/lib/typescript/commonjs/src/enum/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/environmentDomains.d.ts +8 -0
- package/lib/typescript/commonjs/src/environmentDomains.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +7 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/phoneNumberProcessor.d.ts +7 -0
- package/lib/typescript/commonjs/src/phoneNumberProcessor.d.ts.map +1 -0
- package/lib/typescript/module/App.d.ts +10 -0
- package/lib/typescript/module/App.d.ts.map +1 -0
- package/lib/typescript/module/babel.config.d.ts +2 -0
- package/lib/typescript/module/babel.config.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +2 -0
- package/lib/typescript/module/index.d.ts.map +1 -0
- package/lib/typescript/module/jest.config.d.ts +2 -0
- package/lib/typescript/module/jest.config.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/BerifymeModal/MainModal.d.ts +11 -0
- package/lib/typescript/module/lib/commonjs/BerifymeModal/MainModal.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/BerifymeModal/index.d.ts +10 -0
- package/lib/typescript/module/lib/commonjs/BerifymeModal/index.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/api/api.d.ts +266 -0
- package/lib/typescript/module/lib/commonjs/api/api.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/AllSet.d.ts +10 -0
- package/lib/typescript/module/lib/commonjs/components/AllSet.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/AuthenticationLogs.d.ts +18 -0
- package/lib/typescript/module/lib/commonjs/components/AuthenticationLogs.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/AuthidLogin.d.ts +11 -0
- package/lib/typescript/module/lib/commonjs/components/AuthidLogin.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/AuthidOnboarding.d.ts +14 -0
- package/lib/typescript/module/lib/commonjs/components/AuthidOnboarding.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/ClearLogin.d.ts +12 -0
- package/lib/typescript/module/lib/commonjs/components/ClearLogin.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/ClearOnboarding.d.ts +12 -0
- package/lib/typescript/module/lib/commonjs/components/ClearOnboarding.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/Footer.d.ts +4 -0
- package/lib/typescript/module/lib/commonjs/components/Footer.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/IncodeOnBoarding.d.ts +11 -0
- package/lib/typescript/module/lib/commonjs/components/IncodeOnBoarding.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/IncodeProvider.d.ts +1 -0
- package/lib/typescript/module/lib/commonjs/components/IncodeProvider.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/Onboarding/Authid/AuthIdSelectType.d.ts +7 -0
- package/lib/typescript/module/lib/commonjs/components/Onboarding/Authid/AuthIdSelectType.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/Onboarding/Authid/idOrPassport.d.ts +8 -0
- package/lib/typescript/module/lib/commonjs/components/Onboarding/Authid/idOrPassport.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/Onboarding/Vender.d.ts +8 -0
- package/lib/typescript/module/lib/commonjs/components/Onboarding/Vender.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/SendSNS/index.d.ts +14 -0
- package/lib/typescript/module/lib/commonjs/components/SendSNS/index.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/SumsubLogin.d.ts +11 -0
- package/lib/typescript/module/lib/commonjs/components/SumsubLogin.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/SumsubOnboarding.d.ts +11 -0
- package/lib/typescript/module/lib/commonjs/components/SumsubOnboarding.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/TryAgainInModal.d.ts +7 -0
- package/lib/typescript/module/lib/commonjs/components/TryAgainInModal.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/VeriffLogin.d.ts +12 -0
- package/lib/typescript/module/lib/commonjs/components/VeriffLogin.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/VeriffOnboarding.d.ts +12 -0
- package/lib/typescript/module/lib/commonjs/components/VeriffOnboarding.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/VerifiedExternalPhoneNumber/index.d.ts +13 -0
- package/lib/typescript/module/lib/commonjs/components/VerifiedExternalPhoneNumber/index.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/VerifyWithPhoneNumber/NewUser.d.ts +10 -0
- package/lib/typescript/module/lib/commonjs/components/VerifyWithPhoneNumber/NewUser.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/VerifyWithPhoneNumber/User.d.ts +11 -0
- package/lib/typescript/module/lib/commonjs/components/VerifyWithPhoneNumber/User.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/VerifyWithPhoneNumber/biometrics.d.ts +8 -0
- package/lib/typescript/module/lib/commonjs/components/VerifyWithPhoneNumber/biometrics.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/YotiLogin.d.ts +11 -0
- package/lib/typescript/module/lib/commonjs/components/YotiLogin.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/YotiOnboarding.d.ts +12 -0
- package/lib/typescript/module/lib/commonjs/components/YotiOnboarding.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/biometrics/EnableBiometricsTypes.d.ts +5 -0
- package/lib/typescript/module/lib/commonjs/components/biometrics/EnableBiometricsTypes.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/biometrics/index.d.ts +25 -0
- package/lib/typescript/module/lib/commonjs/components/biometrics/index.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/components/incodeLogin.d.ts +11 -0
- package/lib/typescript/module/lib/commonjs/components/incodeLogin.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/enum/index.d.ts +4 -0
- package/lib/typescript/module/lib/commonjs/enum/index.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/environmentDomains.d.ts +8 -0
- package/lib/typescript/module/lib/commonjs/environmentDomains.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/index.d.ts +6 -0
- package/lib/typescript/module/lib/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/module/lib/commonjs/phoneNumberProcessor.d.ts +8 -0
- package/lib/typescript/module/lib/commonjs/phoneNumberProcessor.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/BerifymeModal/MainModal.d.ts +11 -0
- package/lib/typescript/module/lib/module/BerifymeModal/MainModal.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/BerifymeModal/index.d.ts +10 -0
- package/lib/typescript/module/lib/module/BerifymeModal/index.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/api/api.d.ts +265 -0
- package/lib/typescript/module/lib/module/api/api.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/AllSet.d.ts +10 -0
- package/lib/typescript/module/lib/module/components/AllSet.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/AuthenticationLogs.d.ts +17 -0
- package/lib/typescript/module/lib/module/components/AuthenticationLogs.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/AuthidLogin.d.ts +11 -0
- package/lib/typescript/module/lib/module/components/AuthidLogin.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/AuthidOnboarding.d.ts +14 -0
- package/lib/typescript/module/lib/module/components/AuthidOnboarding.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/ClearLogin.d.ts +12 -0
- package/lib/typescript/module/lib/module/components/ClearLogin.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/ClearOnboarding.d.ts +12 -0
- package/lib/typescript/module/lib/module/components/ClearOnboarding.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/Footer.d.ts +4 -0
- package/lib/typescript/module/lib/module/components/Footer.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/IncodeOnBoarding.d.ts +11 -0
- package/lib/typescript/module/lib/module/components/IncodeOnBoarding.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/IncodeProvider.d.ts +1 -0
- package/lib/typescript/module/lib/module/components/IncodeProvider.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/Onboarding/Authid/AuthIdSelectType.d.ts +7 -0
- package/lib/typescript/module/lib/module/components/Onboarding/Authid/AuthIdSelectType.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/Onboarding/Authid/idOrPassport.d.ts +8 -0
- package/lib/typescript/module/lib/module/components/Onboarding/Authid/idOrPassport.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/Onboarding/Vender.d.ts +8 -0
- package/lib/typescript/module/lib/module/components/Onboarding/Vender.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/SendSNS/index.d.ts +14 -0
- package/lib/typescript/module/lib/module/components/SendSNS/index.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/SumsubLogin.d.ts +11 -0
- package/lib/typescript/module/lib/module/components/SumsubLogin.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/SumsubOnboarding.d.ts +11 -0
- package/lib/typescript/module/lib/module/components/SumsubOnboarding.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/TryAgainInModal.d.ts +7 -0
- package/lib/typescript/module/lib/module/components/TryAgainInModal.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/VeriffLogin.d.ts +12 -0
- package/lib/typescript/module/lib/module/components/VeriffLogin.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/VeriffOnboarding.d.ts +12 -0
- package/lib/typescript/module/lib/module/components/VeriffOnboarding.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/VerifiedExternalPhoneNumber/index.d.ts +13 -0
- package/lib/typescript/module/lib/module/components/VerifiedExternalPhoneNumber/index.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/VerifyWithPhoneNumber/NewUser.d.ts +10 -0
- package/lib/typescript/module/lib/module/components/VerifyWithPhoneNumber/NewUser.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/VerifyWithPhoneNumber/User.d.ts +11 -0
- package/lib/typescript/module/lib/module/components/VerifyWithPhoneNumber/User.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/VerifyWithPhoneNumber/biometrics.d.ts +7 -0
- package/lib/typescript/module/lib/module/components/VerifyWithPhoneNumber/biometrics.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/YotiLogin.d.ts +11 -0
- package/lib/typescript/module/lib/module/components/YotiLogin.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/YotiOnboarding.d.ts +12 -0
- package/lib/typescript/module/lib/module/components/YotiOnboarding.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/biometrics/EnableBiometricsTypes.d.ts +3 -0
- package/lib/typescript/module/lib/module/components/biometrics/EnableBiometricsTypes.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/biometrics/index.d.ts +30 -0
- package/lib/typescript/module/lib/module/components/biometrics/index.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/components/incodeLogin.d.ts +11 -0
- package/lib/typescript/module/lib/module/components/incodeLogin.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/enum/index.d.ts +3 -0
- package/lib/typescript/module/lib/module/enum/index.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/environmentDomains.d.ts +7 -0
- package/lib/typescript/module/lib/module/environmentDomains.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/index.d.ts +7 -0
- package/lib/typescript/module/lib/module/index.d.ts.map +1 -0
- package/lib/typescript/module/lib/module/phoneNumberProcessor.d.ts +7 -0
- package/lib/typescript/module/lib/module/phoneNumberProcessor.d.ts.map +1 -0
- package/lib/typescript/module/metro.config.d.ts +3 -0
- package/lib/typescript/module/metro.config.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/BerifymeModal/MainModal.d.ts +12 -0
- package/lib/typescript/module/src/BerifymeModal/MainModal.d.ts.map +1 -0
- package/lib/typescript/module/src/BerifymeModal/index.d.ts +11 -0
- package/lib/typescript/module/src/BerifymeModal/index.d.ts.map +1 -0
- package/lib/typescript/module/src/api/api.d.ts +484 -0
- package/lib/typescript/module/src/api/api.d.ts.map +1 -0
- package/lib/typescript/module/src/components/AllSet.d.ts +11 -0
- package/lib/typescript/module/src/components/AllSet.d.ts.map +1 -0
- package/lib/typescript/module/src/components/AuthenticationLogs.d.ts +20 -0
- package/lib/typescript/module/src/components/AuthenticationLogs.d.ts.map +1 -0
- package/lib/typescript/module/src/components/AuthidLogin.d.ts +13 -0
- package/lib/typescript/module/src/components/AuthidLogin.d.ts.map +1 -0
- package/lib/typescript/module/src/components/AuthidOnboarding.d.ts +16 -0
- package/lib/typescript/module/src/components/AuthidOnboarding.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ClearLogin.d.ts +14 -0
- package/lib/typescript/module/src/components/ClearLogin.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ClearOnboarding.d.ts +14 -0
- package/lib/typescript/module/src/components/ClearOnboarding.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Footer.d.ts +4 -0
- package/lib/typescript/module/src/components/Footer.d.ts.map +1 -0
- package/lib/typescript/module/src/components/IncodeOnBoarding.d.ts +13 -0
- package/lib/typescript/module/src/components/IncodeOnBoarding.d.ts.map +1 -0
- package/lib/typescript/module/src/components/IncodeProvider.d.ts +1 -0
- package/lib/typescript/module/src/components/IncodeProvider.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Onboarding/Authid/AuthIdSelectType.d.ts +7 -0
- package/lib/typescript/module/src/components/Onboarding/Authid/AuthIdSelectType.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Onboarding/Authid/idOrPassport.d.ts +8 -0
- package/lib/typescript/module/src/components/Onboarding/Authid/idOrPassport.d.ts.map +1 -0
- package/lib/typescript/module/src/components/Onboarding/Vender.d.ts +9 -0
- package/lib/typescript/module/src/components/Onboarding/Vender.d.ts.map +1 -0
- package/lib/typescript/module/src/components/SendSNS/index.d.ts +17 -0
- package/lib/typescript/module/src/components/SendSNS/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/SumsubLogin.d.ts +13 -0
- package/lib/typescript/module/src/components/SumsubLogin.d.ts.map +1 -0
- package/lib/typescript/module/src/components/SumsubOnboarding.d.ts +13 -0
- package/lib/typescript/module/src/components/SumsubOnboarding.d.ts.map +1 -0
- package/lib/typescript/module/src/components/TryAgainInModal.d.ts +7 -0
- package/lib/typescript/module/src/components/TryAgainInModal.d.ts.map +1 -0
- package/lib/typescript/module/src/components/VeriffLogin.d.ts +14 -0
- package/lib/typescript/module/src/components/VeriffLogin.d.ts.map +1 -0
- package/lib/typescript/module/src/components/VeriffOnboarding.d.ts +14 -0
- package/lib/typescript/module/src/components/VeriffOnboarding.d.ts.map +1 -0
- package/lib/typescript/module/src/components/VerifiedExternalPhoneNumber/index.d.ts +16 -0
- package/lib/typescript/module/src/components/VerifiedExternalPhoneNumber/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/VerifyWithPhoneNumber/NewUser.d.ts +12 -0
- package/lib/typescript/module/src/components/VerifyWithPhoneNumber/NewUser.d.ts.map +1 -0
- package/lib/typescript/module/src/components/VerifyWithPhoneNumber/User.d.ts +13 -0
- package/lib/typescript/module/src/components/VerifyWithPhoneNumber/User.d.ts.map +1 -0
- package/lib/typescript/module/src/components/VerifyWithPhoneNumber/biometrics.d.ts +9 -0
- package/lib/typescript/module/src/components/VerifyWithPhoneNumber/biometrics.d.ts.map +1 -0
- package/lib/typescript/module/src/components/YotiLogin.d.ts +13 -0
- package/lib/typescript/module/src/components/YotiLogin.d.ts.map +1 -0
- package/lib/typescript/module/src/components/YotiOnboarding.d.ts +14 -0
- package/lib/typescript/module/src/components/YotiOnboarding.d.ts.map +1 -0
- package/lib/typescript/module/src/components/biometrics/EnableBiometricsTypes.d.ts +8 -0
- package/lib/typescript/module/src/components/biometrics/EnableBiometricsTypes.d.ts.map +1 -0
- package/lib/typescript/module/src/components/biometrics/index.d.ts +35 -0
- package/lib/typescript/module/src/components/biometrics/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/incodeLogin.d.ts +13 -0
- package/lib/typescript/module/src/components/incodeLogin.d.ts.map +1 -0
- package/lib/typescript/module/src/enum/index.d.ts +30 -0
- package/lib/typescript/module/src/enum/index.d.ts.map +1 -0
- package/lib/typescript/module/src/environmentDomains.d.ts +8 -0
- package/lib/typescript/module/src/environmentDomains.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +7 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/phoneNumberProcessor.d.ts +7 -0
- package/lib/typescript/module/src/phoneNumberProcessor.d.ts.map +1 -0
- package/package.json +98 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Alert } from "react-native";
|
|
4
|
+
import EnableBiometricsTypes from "../biometrics/EnableBiometricsTypes.js";
|
|
5
|
+
// 用 Promise 包裝 Alert 來控制後續的操作
|
|
6
|
+
const showAlert = (title, message) => {
|
|
7
|
+
return new Promise(resolve => {
|
|
8
|
+
Alert.alert(title, message, [{
|
|
9
|
+
text: 'OK',
|
|
10
|
+
onPress: () => resolve('ok')
|
|
11
|
+
}, {
|
|
12
|
+
text: 'Cancel',
|
|
13
|
+
onPress: () => resolve('cancel')
|
|
14
|
+
}]);
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
// 同步處理生物識別註冊的過程
|
|
19
|
+
const registBiometrics = async (phoneNumber, {
|
|
20
|
+
getBiometryType,
|
|
21
|
+
enableBiometrics
|
|
22
|
+
}) => {
|
|
23
|
+
try {
|
|
24
|
+
const biometryType = await getBiometryType(); // isSensorAvailable
|
|
25
|
+
const result = await enableBiometrics(phoneNumber);
|
|
26
|
+
if (!result.error) {
|
|
27
|
+
const userResponse = await showAlert(`${biometryType} Enabled`, `You’ll be able to sign in and verify your identity with ${biometryType} next time.`);
|
|
28
|
+
if (userResponse === 'ok') {
|
|
29
|
+
console.log('User pressed OK, continue with next steps.');
|
|
30
|
+
// 在這裡可以繼續後續的邏輯
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
} catch (error) {
|
|
34
|
+
console.error('Biometrics registration error:', error);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
export const startBiometrics = async (phoneNumber, {
|
|
38
|
+
biometryType,
|
|
39
|
+
getEnableBiometricsType,
|
|
40
|
+
getBiometryType,
|
|
41
|
+
enableBiometrics
|
|
42
|
+
}) => {
|
|
43
|
+
const getEnableBiometryType = await getEnableBiometricsType(phoneNumber);
|
|
44
|
+
console.log('getEnableBiometryType', getEnableBiometryType);
|
|
45
|
+
switch (getEnableBiometryType) {
|
|
46
|
+
case EnableBiometricsTypes.Allow:
|
|
47
|
+
await registBiometrics(phoneNumber, {
|
|
48
|
+
getBiometryType,
|
|
49
|
+
enableBiometrics
|
|
50
|
+
});
|
|
51
|
+
return;
|
|
52
|
+
case EnableBiometricsTypes.Forbid:
|
|
53
|
+
await showAlert('', 'We could not fulfill your request. The biometric on this device has already been enabled for another Berifyme account.');
|
|
54
|
+
console.log('User acknowledged Forbid message.');
|
|
55
|
+
return;
|
|
56
|
+
case EnableBiometricsTypes.Repeat:
|
|
57
|
+
const userResponse = await showAlert('', `This account currently has ${biometryType} enabled on a different device. Would you like to enable it on this device instead?`);
|
|
58
|
+
if (userResponse === 'ok') {
|
|
59
|
+
await registBiometrics(phoneNumber, {
|
|
60
|
+
getBiometryType,
|
|
61
|
+
enableBiometrics
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=biometrics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Alert","EnableBiometricsTypes","showAlert","title","message","Promise","resolve","alert","text","onPress","registBiometrics","phoneNumber","getBiometryType","enableBiometrics","biometryType","result","error","userResponse","console","log","startBiometrics","getEnableBiometricsType","getEnableBiometryType","Allow","Forbid","Repeat"],"sourceRoot":"../../../../src","sources":["components/VerifyWithPhoneNumber/biometrics.tsx"],"mappings":";;AAAA,SAASA,KAAK,QAAQ,cAAc;AACpC,OAAOC,qBAAqB,MAAM,wCAAqC;AAGvE;AACA,MAAMC,SAAS,GAAGA,CAACC,KAAa,EAAEC,OAAe,KAA+B;EAC9E,OAAO,IAAIC,OAAO,CAAEC,OAAO,IAAK;IAC9BN,KAAK,CAACO,KAAK,CACTJ,KAAK,EACLC,OAAO,EACP,CACE;MAAEI,IAAI,EAAE,IAAI;MAAEC,OAAO,EAAEA,CAAA,KAAMH,OAAO,CAAC,IAAI;IAAE,CAAC,EAC5C;MAAEE,IAA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EF,KAAKlB,qBAAqB,CAACwB,MAAM;MAC/B,MAAMR,YAAY,GAAG,MAAMf,SAAS,CAClC,EAAE,EACF,8BAA8BY,YAAY,qFAC5C,CAAC;MACD,IAAIG,YAAY,KAAK,IAAI,EAAE;QACzB,MAAMP,gBAAgB,CAACC,WAAW,EAAE;UAAEC,eAAe;UAAEC;QAAiB,CAAC,CAAC;MAC5E;MACA;EACJ;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { StyleSheet, View } from 'react-native';
|
|
5
|
+
import WebView from 'react-native-webview';
|
|
6
|
+
import { environmentWebviewDomains } from "../environmentDomains.js";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
function YotiLoginWebView({
|
|
9
|
+
token,
|
|
10
|
+
setError,
|
|
11
|
+
user,
|
|
12
|
+
setUser,
|
|
13
|
+
goToAllSet,
|
|
14
|
+
environment
|
|
15
|
+
}) {
|
|
16
|
+
const handleMessage = event => {
|
|
17
|
+
const messageData = JSON.parse(event.nativeEvent.data);
|
|
18
|
+
switch (messageData.event) {
|
|
19
|
+
case 'onSuccess':
|
|
20
|
+
console.log('onSuccess data', messageData.user);
|
|
21
|
+
if (messageData.user) {
|
|
22
|
+
setUser(messageData.user);
|
|
23
|
+
}
|
|
24
|
+
goToAllSet();
|
|
25
|
+
break;
|
|
26
|
+
case 'onExit':
|
|
27
|
+
console.log('User exited');
|
|
28
|
+
setError('Oops! Something went wrong...');
|
|
29
|
+
break;
|
|
30
|
+
default:
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
return /*#__PURE__*/_jsx(View, {
|
|
35
|
+
style: styles.container,
|
|
36
|
+
children: /*#__PURE__*/_jsx(WebView, {
|
|
37
|
+
source: {
|
|
38
|
+
uri: `${environmentWebviewDomains[environment]}/ReactNativeSDKYotiWebViewLogin?userId=${user.id}&token=${token}&phoneNumber=${user.phoneNumber}&yotiId=${user.yotiId}`
|
|
39
|
+
},
|
|
40
|
+
javaScriptEnabled: true,
|
|
41
|
+
domStorageEnabled: true,
|
|
42
|
+
mediaPlaybackRequiresUserAction: false,
|
|
43
|
+
allowsInlineMediaPlayback: true,
|
|
44
|
+
onLoad: () => console.log('WebView loaded successfully'),
|
|
45
|
+
onError: error => console.error('WebView error:', error),
|
|
46
|
+
onMessage: handleMessage
|
|
47
|
+
})
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
const styles = StyleSheet.create({
|
|
51
|
+
container: {
|
|
52
|
+
display: 'flex',
|
|
53
|
+
width: '100%',
|
|
54
|
+
height: '100%'
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
export default YotiLoginWebView;
|
|
58
|
+
//# sourceMappingURL=YotiLogin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","WebView","environmentWebviewDomains","jsx","_jsx","YotiLoginWebView","token","setError","user","setUser","goToAllSet","environment","handleMessage","event","messageData","JSON","parse","nativeEvent","data","console","log","style","styles","container","children","source","uri","id","phoneNumber","yotiId","javaScriptEnabled","domStorageEnabled","mediaPlaybackRequiresUserAction","allowsInlineMediaPlayback","onLoad","onError","error","onMessage","create","display","width","height"],"sourceRoot":"../../../src","sources":["components/YotiLogin.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,OAAOC,OAAO,MAAM,sBAAsB;AAG1C,SAASC,yBAAyB,QAAQ,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAElE,SAASC,gBAAgBA,CAAC;EACxBC,KAAK;EACLC,QAAQ;EACRC,IAAI;EAAEC,OAAO;EACbC,UAAU;EACVC;AAQF,CAAC,EAAqB;EAEpB,MAAMC,aAAa,GAAIC,KAAU,IAAK;IACpC,MAAMC,WAAW,GA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nG,eAAepC,gBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { StyleSheet, View } from 'react-native';
|
|
5
|
+
import WebView from 'react-native-webview';
|
|
6
|
+
import { environmentWebviewDomains } from "../environmentDomains.js";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
function YotiOnboardingWebView({
|
|
9
|
+
token,
|
|
10
|
+
setError,
|
|
11
|
+
user,
|
|
12
|
+
setUser,
|
|
13
|
+
goToAllSet,
|
|
14
|
+
goBack,
|
|
15
|
+
environment
|
|
16
|
+
}) {
|
|
17
|
+
const handleMessage = event => {
|
|
18
|
+
const messageData = JSON.parse(event.nativeEvent.data);
|
|
19
|
+
switch (messageData.event) {
|
|
20
|
+
case 'onSuccess':
|
|
21
|
+
console.log('onSuccess data', messageData.user);
|
|
22
|
+
if (messageData.user) {
|
|
23
|
+
setUser(messageData.user);
|
|
24
|
+
}
|
|
25
|
+
goToAllSet();
|
|
26
|
+
break;
|
|
27
|
+
case 'onGoBack':
|
|
28
|
+
console.log('User went back');
|
|
29
|
+
goBack();
|
|
30
|
+
break;
|
|
31
|
+
case 'onExit':
|
|
32
|
+
console.log('User exited');
|
|
33
|
+
setError('Oops! Something went wrong...');
|
|
34
|
+
break;
|
|
35
|
+
default:
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
return /*#__PURE__*/_jsx(View, {
|
|
40
|
+
style: styles.container,
|
|
41
|
+
children: /*#__PURE__*/_jsx(WebView, {
|
|
42
|
+
source: {
|
|
43
|
+
uri: `${environmentWebviewDomains[environment]}/ReactNativeSDKYotiWebViewOnBoarding?userId=${user.id}&token=${token}&phoneNumber=${user.phoneNumber}`
|
|
44
|
+
},
|
|
45
|
+
javaScriptEnabled: true,
|
|
46
|
+
domStorageEnabled: true,
|
|
47
|
+
mediaPlaybackRequiresUserAction: false,
|
|
48
|
+
allowsInlineMediaPlayback: true,
|
|
49
|
+
onLoad: () => console.log('WebView loaded successfully'),
|
|
50
|
+
onError: error => console.error('WebView error:', error),
|
|
51
|
+
onMessage: handleMessage
|
|
52
|
+
})
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
const styles = StyleSheet.create({
|
|
56
|
+
container: {
|
|
57
|
+
display: 'flex',
|
|
58
|
+
width: '100%',
|
|
59
|
+
height: '100%'
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
export default YotiOnboardingWebView;
|
|
63
|
+
//# sourceMappingURL=YotiOnboarding.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","WebView","environmentWebviewDomains","jsx","_jsx","YotiOnboardingWebView","token","setError","user","setUser","goToAllSet","goBack","environment","handleMessage","event","messageData","JSON","parse","nativeEvent","data","console","log","style","styles","container","children","source","uri","id","phoneNumber","javaScriptEnabled","domStorageEnabled","mediaPlaybackRequiresUserAction","allowsInlineMediaPlayback","onLoad","onError","error","onMessage","create","display","width","height"],"sourceRoot":"../../../src","sources":["components/YotiOnboarding.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,OAAOC,OAAO,MAAM,sBAAsB;AAG1C,SAASC,yBAAyB,QAAQ,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAElE,SAASC,qBAAqBA,CAAC;EAC7BC,KAAK;EACLC,QAAQ;EACRC,IAAI;EAAEC,OAAO;EACbC,UAAU;EACVC,MAAM;EACNC;AASF,CAAC,EAAqB;EAEpB,MAAMC,aAAa,GAAIC,KAAU,IAAK;IACpC,MAAMC,WAAW,GAAGC,IAAI,CAACC,KAAK,CAACH,KAAK,CAACI,WAAW,CAACC,IAAI,CAAC;IACtD,QAAQJ,WAAW,CAACD,KAAK;MACvB,KAAK,WAAW;QACdM,OAAO,CAACC,GAA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ict";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable no-unused-vars */
|
|
4
|
+
export let EnableBiometricsTypes = /*#__PURE__*/function (EnableBiometricsTypes) {
|
|
5
|
+
EnableBiometricsTypes[EnableBiometricsTypes["Forbid"] = 0] = "Forbid";
|
|
6
|
+
EnableBiometricsTypes[EnableBiometricsTypes["Repeat"] = 1] = "Repeat";
|
|
7
|
+
EnableBiometricsTypes[EnableBiometricsTypes["Allow"] = 2] = "Allow";
|
|
8
|
+
EnableBiometricsTypes[EnableBiometricsTypes["Close"] = 3] = "Close";
|
|
9
|
+
return EnableBiometricsTypes;
|
|
10
|
+
}({});
|
|
11
|
+
export default EnableBiometricsTypes;
|
|
12
|
+
//# sourceMappingURL=EnableBiometricsTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["EnableBiometricsTypes"],"sourceRoot":"../../../../src","sources":["components/biometrics/EnableBiometricsTypes.ts"],"mappings":";;AAAA;AACA,WAAYA,qBAAqB,0BAArBA,qBAAqB;EAArBA,qBAAqB,CAArBA,qBAAqB;EAArBA,qBAAqB,CAArBA,qBAAqB;EAArBA,qBAAqB,CAArBA,qBAAqB;EAArBA,qBAAqB,CAArBA,qBAAqB;EAAA,OAArBA,qBAAqB;AAAA;AAO/B,eAAeA,qBAAqB","ignoreList":[]}
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import AsyncStorage from '@react-native-async-storage/async-storage';
|
|
4
|
+
import EnableBiometricsTypes from "./EnableBiometricsTypes.js";
|
|
5
|
+
import { useEffect, useState } from 'react';
|
|
6
|
+
import ReactNativeBiometrics from 'react-native-biometrics';
|
|
7
|
+
import berifymeApi from "../../api/api.js";
|
|
8
|
+
|
|
9
|
+
// 手動定義 SimplePromptResult 類型
|
|
10
|
+
|
|
11
|
+
const rnBiometrics = new ReactNativeBiometrics();
|
|
12
|
+
const storageKey = 'biometrics';
|
|
13
|
+
export const useRNBiometrics = () => {
|
|
14
|
+
const [biometryType, setBiometryType] = useState();
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
(async () => {
|
|
17
|
+
const {
|
|
18
|
+
biometryType: type
|
|
19
|
+
} = await rnBiometrics.isSensorAvailable();
|
|
20
|
+
if (type === undefined) {
|
|
21
|
+
setBiometryType('NotSupport');
|
|
22
|
+
} else {
|
|
23
|
+
setBiometryType(type);
|
|
24
|
+
}
|
|
25
|
+
})();
|
|
26
|
+
}, []);
|
|
27
|
+
|
|
28
|
+
//確認設備是否擁有生物辨識權限
|
|
29
|
+
const getBiometryType = async () => {
|
|
30
|
+
const {
|
|
31
|
+
biometryType: type
|
|
32
|
+
} = await rnBiometrics.isSensorAvailable();
|
|
33
|
+
if (type === undefined) {
|
|
34
|
+
return 'NotSupport';
|
|
35
|
+
} else {
|
|
36
|
+
return type;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
//刪除帳號的publicKey
|
|
41
|
+
const disableBiometrics = async phoneNumber => {
|
|
42
|
+
await rnBiometrics.deleteKeys();
|
|
43
|
+
await AsyncStorage.removeItem(storageKey);
|
|
44
|
+
await berifymeApi.biometrics.deleteBiometrics({
|
|
45
|
+
phoneNumber
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
//不知道
|
|
50
|
+
// 生物辨識的簡單提示,使用 SimplePromptResult 類型
|
|
51
|
+
const simplePrompt = async () => {
|
|
52
|
+
try {
|
|
53
|
+
const result = await rnBiometrics.simplePrompt({
|
|
54
|
+
promptMessage: 'Verify ' + biometryType
|
|
55
|
+
});
|
|
56
|
+
return {
|
|
57
|
+
success: result.success
|
|
58
|
+
};
|
|
59
|
+
} catch (error) {
|
|
60
|
+
return {
|
|
61
|
+
success: false,
|
|
62
|
+
error: error.message
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
//開啟並創建生物辨識
|
|
68
|
+
const enableBiometrics = async phoneNumber => {
|
|
69
|
+
const payload = phoneNumber;
|
|
70
|
+
await disableBiometrics(phoneNumber);
|
|
71
|
+
const {
|
|
72
|
+
publicKey
|
|
73
|
+
} = await rnBiometrics.createKeys();
|
|
74
|
+
const storageData = {
|
|
75
|
+
payload,
|
|
76
|
+
publicKey
|
|
77
|
+
};
|
|
78
|
+
await AsyncStorage.setItem(storageKey, JSON.stringify(storageData));
|
|
79
|
+
const newSignature = await createSignature();
|
|
80
|
+
if (newSignature && newSignature.success && newSignature.signature) {
|
|
81
|
+
const result = await berifymeApi.biometrics.createBiometrics({
|
|
82
|
+
publicKey,
|
|
83
|
+
phoneNumber: payload,
|
|
84
|
+
signature: newSignature.signature
|
|
85
|
+
});
|
|
86
|
+
return result;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
error: 'create signature error.'
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
//獲取AsyncStorage payload, publicKey
|
|
94
|
+
const getBiometricsData = async () => {
|
|
95
|
+
const storageDataStr = await AsyncStorage.getItem(storageKey);
|
|
96
|
+
if (!storageDataStr) return null;
|
|
97
|
+
try {
|
|
98
|
+
return JSON.parse(storageDataStr);
|
|
99
|
+
} catch (error) {
|
|
100
|
+
return null;
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
//開啟設備上的生物辨識(ex開始掃臉)
|
|
105
|
+
const createSignature = async () => {
|
|
106
|
+
const biometricsData = await getBiometricsData();
|
|
107
|
+
if (!biometricsData) {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
const {
|
|
111
|
+
payload,
|
|
112
|
+
publicKey
|
|
113
|
+
} = biometricsData;
|
|
114
|
+
try {
|
|
115
|
+
const result = await rnBiometrics.createSignature({
|
|
116
|
+
payload,
|
|
117
|
+
promptMessage: 'Verify ' + biometryType
|
|
118
|
+
});
|
|
119
|
+
return {
|
|
120
|
+
...result,
|
|
121
|
+
payload,
|
|
122
|
+
publicKey
|
|
123
|
+
};
|
|
124
|
+
} catch (error) {
|
|
125
|
+
return undefined;
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
//確認是否已啟用(看設備上的跟db上的是否相同)
|
|
130
|
+
const getBiometricsEnable = async phoneNumber => {
|
|
131
|
+
const biometricsData = await getBiometricsData();
|
|
132
|
+
if (!biometricsData) return {
|
|
133
|
+
status: 'NotSet'
|
|
134
|
+
};
|
|
135
|
+
const {
|
|
136
|
+
payload,
|
|
137
|
+
publicKey
|
|
138
|
+
} = biometricsData;
|
|
139
|
+
const result = await berifymeApi.biometrics.checkBiometricsStatus({
|
|
140
|
+
phoneNumber: phoneNumber ?? payload,
|
|
141
|
+
publicKey
|
|
142
|
+
});
|
|
143
|
+
if (result.error) return {
|
|
144
|
+
error: result.error
|
|
145
|
+
};
|
|
146
|
+
return {
|
|
147
|
+
status: result.status
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
//確認是否已啟用(看設備上的payload是否等於現在要呼叫的電話)
|
|
152
|
+
const getLocalAndSessionStatus = async phoneNumber => {
|
|
153
|
+
const biometricsData = await getBiometricsData();
|
|
154
|
+
if (!biometricsData) return {
|
|
155
|
+
status: 'NotSet'
|
|
156
|
+
};
|
|
157
|
+
const {
|
|
158
|
+
payload
|
|
159
|
+
} = biometricsData;
|
|
160
|
+
if (payload === phoneNumber) return {
|
|
161
|
+
status: 'Match'
|
|
162
|
+
};else return {
|
|
163
|
+
status: 'NotMatch'
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
//確認是否已啟用(看db有沒有)
|
|
168
|
+
const getSessionAndDBStatus = async phoneNumber => {
|
|
169
|
+
const result = await berifymeApi.biometrics.checkBiometricsStatus({
|
|
170
|
+
phoneNumber,
|
|
171
|
+
publicKey: null
|
|
172
|
+
});
|
|
173
|
+
if (result.error) return {
|
|
174
|
+
error: result.error
|
|
175
|
+
};
|
|
176
|
+
return {
|
|
177
|
+
status: result.status
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
const getEnableBiometricsType = async phoneNumber => {
|
|
181
|
+
const localAndDBResult = await getBiometricsEnable(phoneNumber);
|
|
182
|
+
const localAndSessionResult = await getLocalAndSessionStatus(phoneNumber);
|
|
183
|
+
const sessionAndDBResult = await getSessionAndDBStatus(phoneNumber);
|
|
184
|
+
console.log(localAndDBResult, localAndSessionResult, sessionAndDBResult);
|
|
185
|
+
if (localAndDBResult.error || sessionAndDBResult.error) return EnableBiometricsTypes.Close;
|
|
186
|
+
// localAndDBResult = match
|
|
187
|
+
if (localAndDBResult?.status === 'Match') {
|
|
188
|
+
if (localAndSessionResult.status === 'Match') {
|
|
189
|
+
return EnableBiometricsTypes.Close;
|
|
190
|
+
}
|
|
191
|
+
if (localAndSessionResult.status === 'NotMatch') {
|
|
192
|
+
return EnableBiometricsTypes.Forbid;
|
|
193
|
+
}
|
|
194
|
+
if (localAndSessionResult.status === 'NotSet') {
|
|
195
|
+
return EnableBiometricsTypes.Allow;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
// localAndDBResult = NotMatch
|
|
199
|
+
if (localAndDBResult?.status === 'NotMatch') {
|
|
200
|
+
if (localAndSessionResult.status === 'Match') {
|
|
201
|
+
return EnableBiometricsTypes.Repeat;
|
|
202
|
+
}
|
|
203
|
+
if (localAndSessionResult.status === 'NotMatch') {
|
|
204
|
+
if (sessionAndDBResult.status === 'Match' || sessionAndDBResult.status === 'NotMatch') {
|
|
205
|
+
return EnableBiometricsTypes.Repeat;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
if (localAndSessionResult.status === 'NotMatch') {
|
|
209
|
+
if (sessionAndDBResult.status === 'NotSet') {
|
|
210
|
+
return EnableBiometricsTypes.Allow;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
// localAndDBResult = NotSet
|
|
215
|
+
if (localAndDBResult?.status === 'NotSet') {
|
|
216
|
+
if (sessionAndDBResult.status === 'Match' || sessionAndDBResult.status === 'NotMatch') {
|
|
217
|
+
return EnableBiometricsTypes.Repeat;
|
|
218
|
+
}
|
|
219
|
+
if (sessionAndDBResult.status === 'NotSet') {
|
|
220
|
+
return EnableBiometricsTypes.Allow;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
return {
|
|
225
|
+
simplePrompt,
|
|
226
|
+
getBiometricsData,
|
|
227
|
+
biometryType,
|
|
228
|
+
getBiometryType,
|
|
229
|
+
createSignature,
|
|
230
|
+
enableBiometrics,
|
|
231
|
+
disableBiometrics,
|
|
232
|
+
getBiometricsEnableById: getBiometricsEnable,
|
|
233
|
+
getEnableBiometricsType
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AsyncStorage","EnableBiometricsTypes","useEffect","useState","ReactNativeBiometrics","berifymeApi","rnBiometrics","storageKey","useRNBiometrics","biometryType","setBiometryType","type","isSensorAvailable","undefined","getBiometryType","disableBiometrics","phoneNumber","deleteKeys","removeItem","biometrics","deleteBiometrics","simplePrompt","result","promptMessage","success","error","message","enableBiometrics","payload","publicKey","createKeys","storageData","setItem","JSON","stringify","newSignature","createSignature","signature","createBiometrics","getBiometricsData","storageDataStr","getItem","parse","biometricsData","getBiometricsEnable","status","checkBiometricsStatus","getLocalAndSessionStatus","getSessionAndDBStatus","getEnableBiometricsType","localAndDBResult","localAndSessionResult","sessionAndDBResult","console","log","Close","Forbid","Allow","Repeat","getBiometricsEnableById"],"sourceRoot":"../../../../src","sources":["components/biometrics/index.tsx"],"mappings":";;AAAA,OAAOA,YAAY,MAAM,2CAA2C;AACpE,OAAOC,qBAAqB,MAAM,4BAAyB;AAC3D,SAASC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3C,OAAOC,qBAAqB,MAAwB,yBAAyB;AAC7E,OAAOC,WAAW,MAAM,kBAAe;;A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BAAgB,EAAEL,MAAM,KAAK,UAAU,EAAE;MAC3C,IAAIM,qBAAqB,CAACN,MAAM,KAAK,OAAO,EAAE;QAC5C,OAAO5C,qBAAqB,CAACyD,MAAM;MACrC;MACA,IAAIP,qBAAqB,CAACN,MAAM,KAAK,UAAU,EAAE;QAC/C,IAAKO,kBAAkB,CAACP,MAAM,KAAK,OAAO,IAAIO,kBAAkB,CAACP,MAAM,KAAK,UAAU,EAAG;UACvF,OAAO5C,qBAAqB,CAACyD,MAAM;QACrC;MACF;MACA,IAAIP,qBAAqB,CAACN,MAAM,KAAK,UAAU,EAAE;QAC/C,IAAKO,kBAAkB,CAACP,MAAM,KAAK,QAAQ,EAAG;UAC5C,OAAO5C,qBAAqB,CAACwD,KAAK;QACpC;MACF;IACF;IACA;IACA,IAAIP,gBAAgB,EAAEL,MAAM,KAAK,QAAQ,EAAE;MACzC,IAAKO,kBAAkB,CAACP,MAAM,KAAK,OAAO,IAAIO,kBAAkB,CAACP,MAAM,KAAK,UAAU,EAAG;QACvF,OAAO5C,qBAAqB,CAACyD,MAAM;MACrC;MACA,IAAKN,kBAAkB,CAACP,MAAM,KAAK,QAAQ,EAAG;QAC5C,OAAO5C,qBAAqB,CAACwD,KAAK;MACpC;IACF;EACF,CAAC;EAED,OAAO;IACLpC,YAAY;IACZkB,iBAAiB;IACjB9B,YAAY;IACZK,eAAe;IACfsB,eAAe;IACfT,gBAAgB;IAChBZ,iBAAiB;IACjB4C,uBAAuB,EAAEf,mBAAmB;IAC5CK;EACF,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import WebView from 'react-native-webview';
|
|
6
|
+
import { environmentWebviewDomains } from "../environmentDomains.js";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
function IncodeLoginWebView({
|
|
9
|
+
token,
|
|
10
|
+
setError,
|
|
11
|
+
user,
|
|
12
|
+
setUser,
|
|
13
|
+
goToAllSet,
|
|
14
|
+
environment
|
|
15
|
+
}) {
|
|
16
|
+
const handleMessage = event => {
|
|
17
|
+
const messageData = JSON.parse(event.nativeEvent.data);
|
|
18
|
+
if (messageData.event === 'onSuccess') {
|
|
19
|
+
console.log('onSuccess data', messageData.user);
|
|
20
|
+
if (messageData.user) setUser(messageData.user);
|
|
21
|
+
goToAllSet();
|
|
22
|
+
} else if (messageData.event === 'onExit') {
|
|
23
|
+
console.log('User exited');
|
|
24
|
+
setError('Oops! Something went wrong...');
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
return /*#__PURE__*/_jsx(View, {
|
|
28
|
+
style: {
|
|
29
|
+
display: 'flex',
|
|
30
|
+
width: '100%',
|
|
31
|
+
height: '100%'
|
|
32
|
+
},
|
|
33
|
+
children: /*#__PURE__*/_jsx(WebView, {
|
|
34
|
+
source: {
|
|
35
|
+
uri: `${environmentWebviewDomains[environment]}/ReactNativeSDKIncodeWebViewLogin?token=${token}&incodeId=${user.incodeId}`
|
|
36
|
+
},
|
|
37
|
+
javaScriptEnabled: true,
|
|
38
|
+
domStorageEnabled: true,
|
|
39
|
+
mediaPlaybackRequiresUserAction: false,
|
|
40
|
+
allowsInlineMediaPlayback: true,
|
|
41
|
+
onLoad: () => console.log('WebView loaded successfully'),
|
|
42
|
+
onError: error => console.error('WebView error:', error),
|
|
43
|
+
onMessage: handleMessage
|
|
44
|
+
})
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
export default IncodeLoginWebView;
|
|
48
|
+
//# sourceMappingURL=incodeLogin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","WebView","environmentWebviewDomains","jsx","_jsx","IncodeLoginWebView","token","setError","user","setUser","goToAllSet","environment","handleMessage","event","messageData","JSON","parse","nativeEvent","data","console","log","style","display","width","height","children","source","uri","incodeId","javaScriptEnabled","domStorageEnabled","mediaPlaybackRequiresUserAction","allowsInlineMediaPlayback","onLoad","onError","error","onMessage"],"sourceRoot":"../../../src","sources":["components/incodeLogin.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAA6B,OAAO;AAChD,SAASC,IAAI,QAAQ,cAAc;AACnC,OAAOC,OAAO,MAAM,sBAAsB;AAG1C,SAASC,yBAAyB,QAAQ,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAElE,SAASC,kBAAkBA,CAAC;EAC1BC,KAAK;EACLC,QAAQ;EACRC,IAAI;EAAEC,OAAO;EACbC,UAAU;EACVC;AAQF,CAAC,EAAqB;EAEpB,MAAMC,aAAa,GAAIC,KAAU,IAAK;IACpC,MAAMC,WAAW,GAAGC,IAAI,CAACC,KAAK,CAACH,KAAK,CAACI,WAAW,CAACC,IAAI,CAAC;IACtD,IAAIJ,WAAW,CAACD,KAAK,KAAK,WAAW,EAAE;MACrCM,OAAO,CAACC,GAAG,CAAC,gBAAgB,EAAEN,WAAW,CAACN,IAAI,CAAC;MAC/C,IAAIM,WAAW,CAACN,IAAI,EAAEC,OAAO,CAACK,WAAW,CAACN,IAAI,CAAC;MAC/CE,UAAU,CAAC,CAAC;IACd,CAAC,MAAM,IAAII,WAAW,CAACD,KAAK,KAAK,QAAQ,EAAE;MACzCM,OAAO,CAACC,GAAG,CAAC,aAAa,CAAC;MAC1Bb,QAAQ,CAAE,+BAA+B,CAAC;IAC5C;EACF,CAAC;EAED,oBAASH,IAAA,CAACJ,IAAI;IAACqB,KAAK,EAAE;MAAEC,OAAO,EAAE,MAAM;MAAEC,KAAK,EAAE,MAAM;MAAEC,MAAM,EAAE;IAAM,CAAE;IAAAC,QAAA,eACtErB,IAAA,CAACH,OAAO;MACNyB,MAAM,EAAE;QAAEC,GAAG,EAAE,GAAGzB,yBAAyB,CAACS,WAAW,CAAC,2CAA2CL,KAAK,aAAaE,IAAI,CAACoB,QAAQ;MAAG,CAAE;MACvIC,iBAAiB,EAAE,IAAK;MACxBC,iBAAiB,EAAE,IAAK;MACxBC,+BAA+B,EAAE,KAAM;MACvCC,yBAAyB,EAAE,IAAK;MAChCC,MAAM,EAAEA,CAAA,KAAMd,OAAO,CAACC,GAAG,CAAC,6BAA6B,CAAE;MACzDc,OAAO,EAAGC,KAAK,IAAKhB,OAAO,CAACgB,KAAK,CAAC,gBAAgB,EAAEA,KAAK,CAAE;MAC3DC,SAAS,EAAExB;IAAc,CAAE;EAAC,CAC1B,CAAC;AAET;AAEA,eAAeP,kBAAkB","ignoreList":[]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export let Environment = /*#__PURE__*/function (Environment) {
|
|
4
|
+
Environment["Sandbox"] = "sandbox";
|
|
5
|
+
Environment["Staging"] = "staging";
|
|
6
|
+
Environment["Idv"] = "idv";
|
|
7
|
+
return Environment;
|
|
8
|
+
}({});
|
|
9
|
+
export let PageStatus = /*#__PURE__*/function (PageStatus) {
|
|
10
|
+
PageStatus[PageStatus["Loading"] = -1] = "Loading";
|
|
11
|
+
PageStatus[PageStatus["SendSns"] = 0] = "SendSns";
|
|
12
|
+
PageStatus[PageStatus["VerifiedExternalPhoneNumber"] = 0.1] = "VerifiedExternalPhoneNumber";
|
|
13
|
+
PageStatus[PageStatus["VerifyNewUser"] = 1] = "VerifyNewUser";
|
|
14
|
+
PageStatus[PageStatus["Vender"] = 1.1] = "Vender";
|
|
15
|
+
PageStatus[PageStatus["IdOrPassport"] = 1.2] = "IdOrPassport";
|
|
16
|
+
PageStatus[PageStatus["VerifyUser"] = 1.5] = "VerifyUser";
|
|
17
|
+
PageStatus[PageStatus["AuthIdOnboarding"] = 2] = "AuthIdOnboarding";
|
|
18
|
+
PageStatus[PageStatus["ClearOnboarding"] = 2.1] = "ClearOnboarding";
|
|
19
|
+
PageStatus[PageStatus["IncodeOnBoarding"] = 2.2] = "IncodeOnBoarding";
|
|
20
|
+
PageStatus[PageStatus["SumsubOnBoarding"] = 2.3] = "SumsubOnBoarding";
|
|
21
|
+
PageStatus[PageStatus["VeriffOnBoarding"] = 2.4] = "VeriffOnBoarding";
|
|
22
|
+
PageStatus[PageStatus["YotiOnBoarding"] = 2.5] = "YotiOnBoarding";
|
|
23
|
+
PageStatus[PageStatus["AuthidLogin"] = 3] = "AuthidLogin";
|
|
24
|
+
PageStatus[PageStatus["ClearLogin"] = 4] = "ClearLogin";
|
|
25
|
+
PageStatus[PageStatus["IncodeLogin"] = 5] = "IncodeLogin";
|
|
26
|
+
PageStatus[PageStatus["ClearLoginAllSet"] = 6] = "ClearLoginAllSet";
|
|
27
|
+
PageStatus[PageStatus["ClearOnboardingAllSet"] = 7] = "ClearOnboardingAllSet";
|
|
28
|
+
PageStatus[PageStatus["SumsubLogin"] = 8] = "SumsubLogin";
|
|
29
|
+
PageStatus[PageStatus["VeriffLogin"] = 9] = "VeriffLogin";
|
|
30
|
+
PageStatus[PageStatus["YotiLogin"] = 11] = "YotiLogin";
|
|
31
|
+
PageStatus[PageStatus["AllSet"] = 10] = "AllSet";
|
|
32
|
+
return PageStatus;
|
|
33
|
+
}({});
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Environment","PageStatus"],"sourceRoot":"../../../src","sources":["enum/index.tsx"],"mappings":";;AAAA,WAAYA,WAAW,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;AAMvB,WAAYC,UAAU,0BAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Environment } from "./enum/index.js";
|
|
4
|
+
export const environmentDomains = {
|
|
5
|
+
[Environment.Sandbox]: 'https://sandbox-backend.berify.me',
|
|
6
|
+
[Environment.Staging]: 'https://staging-backend.berify.me',
|
|
7
|
+
[Environment.Idv]: 'https://backend.berify.me'
|
|
8
|
+
};
|
|
9
|
+
export const environmentWebviewDomains = {
|
|
10
|
+
[Environment.Sandbox]: 'https://sandbox.berify.me',
|
|
11
|
+
[Environment.Staging]: 'https://staging.berify.me',
|
|
12
|
+
[Environment.Idv]: 'https://idv.berify.me'
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=environmentDomains.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Environment","environmentDomains","Sandbox","Staging","Idv","environmentWebviewDomains"],"sourceRoot":"../../src","sources":["environmentDomains.ts"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,iBAAQ;AAEpC,OAAO,MAAMC,kBAAoD,GAAG;EAClE,CAACD,WAAW,CAACE,OAAO,GAAG,mCAAmC;EAC1D,CAACF,WAAW,CAACG,OAAO,GAAG,mCAAmC;EAC1D,CAACH,WAAW,CAACI,GAAG,GAAG;AACrB,CAAC;AAED,OAAO,MAAMC,yBAA2D,GAAG;EACzE,CAACL,WAAW,CAACE,OAAO,GAAG,2BAA2B;EAClD,CAACF,WAAW,CAACG,OAAO,GAAG,2BAA2B;EAClD,CAACH,WAAW,CAACI,GAAG,GAAG;AACrB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["HomeModal","Environment","Berifyme","modal","environment"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,OAAOA,SAAS,MAAM,0BAAiB;AACvC,SAASC,WAAW,QAAQ,iBAAQ;AAEpC,OAAO,MAAMC,QAAQ,GAAG;EACtBC,KAAK,EAAEH,SAAS;EAChBI,WAAW,EAAEH;AACf,CAAC","ignoreList":[]}
|