@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 @@
|
|
|
1
|
+
{"version":3,"names":["_axios","_interopRequireDefault","require","e","__esModule","default","ActionType","exports","config","initializeBerifymeApi","userConfig","getAuthIDToken","url","backendDomain","res","axios","get","data","getIdDocumentTypes","token","headers","createAccount","userId","post","checkBiometricExist","proofUser","idType","getProofTransactionTempId","operationId","createBiometricFromProof","tempId","getAccount","phone","createLoginTransaction","getTransactionStatus","transactionId","getOperationStatus","searchUser","getDocumentDetails","updateAccount","put","getIncodeStart","uniqueId","console","log","getIncodeFinish","getIncodeApprove","id","getAppIncodeApprove","incodeId","createVerificationSession","redirectUrl","payload","getClearApprove","sessionId","createIdmeVerificationUrl","sendIdmePhoneNumberVerify","phoneNumber","idmeId","updateIdmeId","getIdmeApprove","code","checkThirdPartyVerificationToken","sendVerifyEmail","email","sendPhoneNumberVerify","domain","sendPhoneNumberCode","verify","getUserBySessionId","getUserByCode","getUserByIncodeId","getUserByClearId","clearId","getUserVenderByPhone","getUserByPhoneNumberAndVerifyCode","uploadDeviceId","deviceId","checkDeviceId","createUserByVerifiedExternalPhoneNumber","getRedirectUrl","getGeneralVerificationToken","initUpdateAdminTokenSchedule","deleteUpdateAdminTokenSchedule","delete","generateAppleWalletPass","fullName","birthDate","createSessionToken","apiKeyId","secretKey","createSessionTokenWithoutRedirectUrl","checkBiometricsStatus","publicKey","createBiometrics","signature","deleteBiometrics","createAuthenticationLogs","actionType","vender","os","browser","device","incodeSessionId","clearSessionId","isPass","provider","updateAuthenticationLogs","berifymeApi","authID","incode","clear","idme","auth","user","thirdParty","scheduld","pass","tools","biometrics","AuthenticationLogs","_default"],"sourceRoot":"../../../src","sources":["api/api.ts"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA0B,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,IAEdG,UAAU,GAAAC,OAAA,CAAA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wBAAwB;IACxBU;EACF;AACF,CAAC;AAAC,IAAAc,QAAA,GAAAlH,OAAA,CAAAF,OAAA,GAEauG,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _asyncStorage = _interopRequireDefault(require("@react-native-async-storage/async-storage"));
|
|
10
|
+
var _api = _interopRequireDefault(require("../api/api.js"));
|
|
11
|
+
var _reactNativeUuid = _interopRequireDefault(require("react-native-uuid"));
|
|
12
|
+
var _core = require("@react-native-material/core");
|
|
13
|
+
var _Footer = _interopRequireDefault(require("./Footer.js"));
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
17
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
|
+
const createDeviceId = async ({
|
|
19
|
+
userId
|
|
20
|
+
}) => {
|
|
21
|
+
const newDeviceId = _reactNativeUuid.default.v4(); // Generate a new UUID
|
|
22
|
+
if (!newDeviceId) return;
|
|
23
|
+
await _asyncStorage.default.setItem("deviceId", newDeviceId); // Save to AsyncStorage
|
|
24
|
+
await _api.default.user.uploadDeviceId({
|
|
25
|
+
id: userId,
|
|
26
|
+
deviceId: newDeviceId
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
const AllSet = ({
|
|
30
|
+
user,
|
|
31
|
+
token,
|
|
32
|
+
setGeneralVerificationToken,
|
|
33
|
+
closeBerifyme,
|
|
34
|
+
setError
|
|
35
|
+
}) => {
|
|
36
|
+
const checkOldDeviceId = async () => {
|
|
37
|
+
if (!user) return; // No user, no need to fetch deviceId
|
|
38
|
+
if (!user.phoneNumber) return; // No phone number, skip
|
|
39
|
+
if (!token) return;
|
|
40
|
+
const deviceId = await _asyncStorage.default.getItem("deviceId");
|
|
41
|
+
if (deviceId) {
|
|
42
|
+
// Check if deviceId is already registered
|
|
43
|
+
const deviceUser = await _api.default.user.checkDeviceId({
|
|
44
|
+
phoneNumber: user.phoneNumber,
|
|
45
|
+
deviceId,
|
|
46
|
+
token
|
|
47
|
+
});
|
|
48
|
+
if (deviceUser.error) {
|
|
49
|
+
// If deviceId is invalid, create a new one
|
|
50
|
+
await createDeviceId({
|
|
51
|
+
userId: user.id
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
} else {
|
|
55
|
+
// Register a new deviceId
|
|
56
|
+
await createDeviceId({
|
|
57
|
+
userId: user.id
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
(0, _react.useEffect)(() => {
|
|
62
|
+
checkOldDeviceId();
|
|
63
|
+
}, [user?.phoneNumber]);
|
|
64
|
+
const handleButtonClick = async () => {
|
|
65
|
+
if (!user) return;
|
|
66
|
+
if (!token) return;
|
|
67
|
+
const res = await _api.default.thirdParty.getGeneralVerificationToken({
|
|
68
|
+
userId: user.id,
|
|
69
|
+
token
|
|
70
|
+
});
|
|
71
|
+
if (!res.generalVerificationToken) {
|
|
72
|
+
setError("Oops! Something went wrong...");
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
setGeneralVerificationToken(res.generalVerificationToken);
|
|
76
|
+
closeBerifyme();
|
|
77
|
+
};
|
|
78
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
79
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_core.Stack, {
|
|
80
|
+
h: '100%',
|
|
81
|
+
ph: 8,
|
|
82
|
+
pv: 16,
|
|
83
|
+
justify: "between",
|
|
84
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_core.Stack, {
|
|
85
|
+
h: '100%',
|
|
86
|
+
ph: 8,
|
|
87
|
+
pv: 16,
|
|
88
|
+
justify: "between",
|
|
89
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_core.Stack, {
|
|
90
|
+
spacing: 32,
|
|
91
|
+
center: true,
|
|
92
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_core.Stack, {
|
|
93
|
+
spacing: 16,
|
|
94
|
+
center: true,
|
|
95
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
|
|
96
|
+
source: {
|
|
97
|
+
uri: 'https://idv.berify.me/little-berify.png'
|
|
98
|
+
},
|
|
99
|
+
resizeMode: "contain",
|
|
100
|
+
style: styles.image
|
|
101
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_core.Stack, {
|
|
102
|
+
center: true,
|
|
103
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_core.Text, {
|
|
104
|
+
variant: "h5",
|
|
105
|
+
style: styles.textTitle,
|
|
106
|
+
children: "You\u2019re Berified,"
|
|
107
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_core.Text, {
|
|
108
|
+
variant: "h5",
|
|
109
|
+
style: styles.textTitle,
|
|
110
|
+
children: user?.fullName
|
|
111
|
+
})]
|
|
112
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_core.Text, {
|
|
113
|
+
variant: "body1",
|
|
114
|
+
style: styles.textBody1,
|
|
115
|
+
children: "Thank you for securely verifying your identity through Berify.me \uD83C\uDF89"
|
|
116
|
+
})]
|
|
117
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
118
|
+
style: styles.button,
|
|
119
|
+
activeOpacity: 0.8,
|
|
120
|
+
onPress: handleButtonClick,
|
|
121
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_core.Text, {
|
|
122
|
+
style: styles.buttonText,
|
|
123
|
+
children: "Continue"
|
|
124
|
+
})
|
|
125
|
+
})]
|
|
126
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Footer.default, {})]
|
|
127
|
+
})
|
|
128
|
+
})
|
|
129
|
+
});
|
|
130
|
+
};
|
|
131
|
+
const styles = _reactNative.StyleSheet.create({
|
|
132
|
+
image: {
|
|
133
|
+
width: 44,
|
|
134
|
+
height: 44
|
|
135
|
+
},
|
|
136
|
+
grayBg: {
|
|
137
|
+
backgroundColor: '#f2f2f2'
|
|
138
|
+
},
|
|
139
|
+
textTitle: {
|
|
140
|
+
fontSize: 24,
|
|
141
|
+
fontWeight: 700,
|
|
142
|
+
color: '#000000'
|
|
143
|
+
},
|
|
144
|
+
textSubTittle: {
|
|
145
|
+
fontSize: 12,
|
|
146
|
+
color: '#696969',
|
|
147
|
+
fontWeight: 500
|
|
148
|
+
},
|
|
149
|
+
textBody1: {
|
|
150
|
+
fontSize: 16,
|
|
151
|
+
color: '#696969',
|
|
152
|
+
fontWeight: 500,
|
|
153
|
+
lineHeight: 24,
|
|
154
|
+
textAlign: 'center'
|
|
155
|
+
},
|
|
156
|
+
textBody2: {
|
|
157
|
+
fontSize: 12,
|
|
158
|
+
color: '#696969',
|
|
159
|
+
fontWeight: 500,
|
|
160
|
+
lineHeight: 16
|
|
161
|
+
},
|
|
162
|
+
progressText: {
|
|
163
|
+
fontSize: 14,
|
|
164
|
+
fontWeight: 700,
|
|
165
|
+
color: '#000000'
|
|
166
|
+
},
|
|
167
|
+
button: {
|
|
168
|
+
backgroundColor: '#000000',
|
|
169
|
+
borderTopStartRadius: 20,
|
|
170
|
+
borderTopEndRadius: 20,
|
|
171
|
+
borderBottomStartRadius: 20,
|
|
172
|
+
borderBottomEndRadius: 20,
|
|
173
|
+
width: 200,
|
|
174
|
+
height: 52,
|
|
175
|
+
fontWeight: 700,
|
|
176
|
+
justifyContent: 'center',
|
|
177
|
+
alignItems: 'center'
|
|
178
|
+
},
|
|
179
|
+
buttonText: {
|
|
180
|
+
color: '#FFFFFF',
|
|
181
|
+
fontSize: 16,
|
|
182
|
+
fontWeight: 'bold'
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
var _default = exports.default = AllSet;
|
|
186
|
+
//# sourceMappingURL=AllSet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_asyncStorage","_interopRequireDefault","_api","_reactNativeUuid","_core","_Footer","_jsxRuntime","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","createDeviceId","userId","newDeviceId","uuid","v4","AsyncStorage","setItem","berifymeApi","user","uploadDeviceId","id","deviceId","AllSet","token","setGeneralVerificationToken","closeBerifyme","setError","checkOldDeviceId","phoneNumber","getItem","deviceUser","checkDeviceId","error","useEffect","handleButtonClick","res","thirdParty","getGeneralVerificationToken","generalVerificationToken","jsx","Fragment","children","Stack","h","ph","pv","justify","jsxs","spacing","center","Image","source","uri","resizeMode","style","styles","image","Text","variant","textTitle","fullName","textBody1","TouchableOpacity","button","activeOpacity","onPress","buttonText","StyleSheet","create","width","height","grayBg","backgroundColor","fontSize","fontWeight","color","textSubTittle","lineHeight","textAlign","textBody2","progressText","borderTopStartRadius","borderTopEndRadius","borderBottomStartRadius","borderBottomEndRadius","justifyContent","alignItems","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,QAAQ;IACxBC,UAAU,EAAC;EACb,CAAC;EACDpB,UAAU,EAAE;IACVS,KAAK,EAAE,SAAS;IAChBF,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAAC,IAAAa,QAAA,GAAAC,OAAA,CAAAhG,OAAA,GAEY8B,MAAM","ignoreList":[]}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.updateAuthenticationLog = exports.createAuthenticationLog = void 0;
|
|
7
|
+
var _api = _interopRequireDefault(require("../api/api.js"));
|
|
8
|
+
var _reactNativeDeviceInfo = _interopRequireDefault(require("react-native-device-info"));
|
|
9
|
+
var _reactNative = require("react-native");
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
const createAuthenticationLog = async ({
|
|
12
|
+
userId,
|
|
13
|
+
vender,
|
|
14
|
+
token,
|
|
15
|
+
transactionId,
|
|
16
|
+
incodeSessionId,
|
|
17
|
+
clearSessionId,
|
|
18
|
+
isPass,
|
|
19
|
+
actionType
|
|
20
|
+
}) => {
|
|
21
|
+
const os = _reactNative.Platform.OS; // 'ios' or 'android'
|
|
22
|
+
const osVersion = _reactNative.Platform.Version; // 获取操作系统版本号
|
|
23
|
+
const device = await _reactNativeDeviceInfo.default.getModel(); // 获取设备型号,例如 iPhone 12 或 Pixel 4
|
|
24
|
+
const browser = 'React Native'; // React Native app 没有浏览器,这里可以固定为 React Native
|
|
25
|
+
|
|
26
|
+
console.log({
|
|
27
|
+
actionType,
|
|
28
|
+
userId,
|
|
29
|
+
vender,
|
|
30
|
+
token,
|
|
31
|
+
os,
|
|
32
|
+
osVersion,
|
|
33
|
+
browser,
|
|
34
|
+
device,
|
|
35
|
+
transactionId,
|
|
36
|
+
incodeSessionId,
|
|
37
|
+
clearSessionId,
|
|
38
|
+
isPass
|
|
39
|
+
});
|
|
40
|
+
await _api.default.AuthenticationLogs.createAuthenticationLogs({
|
|
41
|
+
actionType,
|
|
42
|
+
userId,
|
|
43
|
+
vender,
|
|
44
|
+
token,
|
|
45
|
+
os: osVersion ? `${os} ${osVersion}` : os,
|
|
46
|
+
browser,
|
|
47
|
+
device,
|
|
48
|
+
transactionId,
|
|
49
|
+
incodeSessionId,
|
|
50
|
+
clearSessionId,
|
|
51
|
+
isPass
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
exports.createAuthenticationLog = createAuthenticationLog;
|
|
55
|
+
const updateAuthenticationLog = async ({
|
|
56
|
+
isPass,
|
|
57
|
+
transactionId,
|
|
58
|
+
incodeSessionId,
|
|
59
|
+
clearSessionId
|
|
60
|
+
}) => {
|
|
61
|
+
console.log({
|
|
62
|
+
isPass,
|
|
63
|
+
transactionId,
|
|
64
|
+
incodeSessionId,
|
|
65
|
+
clearSessionId
|
|
66
|
+
});
|
|
67
|
+
await _api.default.AuthenticationLogs.updateAuthenticationLogs({
|
|
68
|
+
isPass,
|
|
69
|
+
transactionId,
|
|
70
|
+
incodeSessionId,
|
|
71
|
+
clearSessionId
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
exports.updateAuthenticationLog = updateAuthenticationLog;
|
|
75
|
+
//# sourceMappingURL=AuthenticationLogs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_api","_interopRequireDefault","require","_reactNativeDeviceInfo","_reactNative","e","__esModule","default","createAuthenticationLog","userId","vender","token","transactionId","incodeSessionId","clearSessionId","isPass","actionType","os","Platform","OS","osVersion","Version","device","DeviceInfo","getModel","browser","console","log","berifymeApi","AuthenticationLogs","createAuthenticationLogs","exports","updateAuthenticationLog","updateAuthenticationLogs"],"sourceRoot":"../../../src","sources":["components/AuthenticationLogs.tsx"],"mappings":";;;;;;AAAA,IAAAA,IAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC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AAG,CAAC;IACVZ,MAAM;IACNH,aAAa;IAAEC,eAAe;IAAEC;EAClC,CAAC,CAAC;EACF,MAAMc,YAAW,CAACC,kBAAkB,CAACI,wBAAwB,CAAC;IAC5DlB,MAAM;IACNH,aAAa;IAAEC,eAAe;IAAEC;EAClC,CAAC,CAAC;AACN,CAAC;AAACiB,OAAA,CAAAC,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeWebview = require("react-native-webview");
|
|
10
|
+
var _api = require("../api/api.js");
|
|
11
|
+
var _environmentDomains = require("../environmentDomains.js");
|
|
12
|
+
var _AuthenticationLogs = require("./AuthenticationLogs.js");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
function AuthidLoginWebView({
|
|
16
|
+
setError,
|
|
17
|
+
goToAllSet,
|
|
18
|
+
token,
|
|
19
|
+
setUser,
|
|
20
|
+
phoneNumber,
|
|
21
|
+
environment
|
|
22
|
+
}) {
|
|
23
|
+
const handleMessage = event => {
|
|
24
|
+
const messageData = JSON.parse(event.nativeEvent.data);
|
|
25
|
+
if (messageData.event === 'onSuccess') {
|
|
26
|
+
console.log('onSuccess data', messageData.data, messageData.token, messageData.redirectUrl);
|
|
27
|
+
if (messageData.user) setUser(messageData.user);
|
|
28
|
+
(0, _AuthenticationLogs.createAuthenticationLog)({
|
|
29
|
+
actionType: _api.ActionType.LOGIN,
|
|
30
|
+
userId: messageData.user.id,
|
|
31
|
+
vender: 'Berify.me',
|
|
32
|
+
token,
|
|
33
|
+
isPass: true,
|
|
34
|
+
transactionId: messageData.user.transactionId
|
|
35
|
+
});
|
|
36
|
+
goToAllSet();
|
|
37
|
+
} else if (messageData.event === 'onExit') {
|
|
38
|
+
console.log('User exited');
|
|
39
|
+
setError('');
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
43
|
+
style: {
|
|
44
|
+
display: 'flex',
|
|
45
|
+
width: '100%',
|
|
46
|
+
height: '100%'
|
|
47
|
+
},
|
|
48
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeWebview.WebView, {
|
|
49
|
+
source: {
|
|
50
|
+
uri: `${_environmentDomains.environmentWebviewDomains[environment]}/ReactNativeSDKAuthidWebViewLogin?token=${token}&phonenumber=${phoneNumber}`
|
|
51
|
+
},
|
|
52
|
+
javaScriptEnabled: true,
|
|
53
|
+
domStorageEnabled: true,
|
|
54
|
+
mediaPlaybackRequiresUserAction: false,
|
|
55
|
+
allowsInlineMediaPlayback: true,
|
|
56
|
+
onLoad: () => console.log('WebView loaded successfully'),
|
|
57
|
+
onError: error => console.error('WebView error:', error),
|
|
58
|
+
onMessage: handleMessage
|
|
59
|
+
})
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
const styles = _reactNative.StyleSheet.create({
|
|
63
|
+
container: {
|
|
64
|
+
flex: 1
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
var _default = exports.default = AuthidLoginWebView;
|
|
68
|
+
//# sourceMappingURL=AuthidLogin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeWebview","_api","_environmentDomains","_AuthenticationLogs","_jsxRuntime","e","__esModule","default","AuthidLoginWebView","setError","goToAllSet","token","setUser","phoneNumber","environment","handleMessage","event","messageData","JSON","parse","nativeEvent","data","console","log","redirectUrl","user","createAuthenticationLog","actionType","ActionType","LOGIN","userId","id","vender","isPass","transactionId","jsx","View","style","display","width","height","children","WebView","source","uri","environmentWebviewDomains","javaScriptEnabled","domStorageEnabled","mediaPlaybackRequiresUserAction","allowsInlineMediaPlayback","onLoad","onError","error","onMessage","styles","StyleSheet","create","container","flex","_default","exports"],"sourceRoot":"../../../src","sources":["components/AuthidLogin.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,IAAA,GAAAH,OAAA;AAEA,IAAAI,mBAAA,GAAAJ,OAAA;AACA,IAAAK,mBAAA,GAAAL,OAAA;AAA+D,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE/D,SAASG,kBAAkBA,CAAC;EAC1BC,QAAQ;EACRC,UAAU;EACVC,KAAK;EAAEC,OAAO;EACdC,WAAW;EACXC;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,CAACI,IAAI,EAAEJ,WAAW,CAACN,KAAK,EAAEM,WAAW,CAACO,WAAW,CAAC;MAC3F,IAAIP,WAAW,CAACQ,IAAI,EAAEb,OAAO,CAACK,WAAW,CAACQ,IAAI,CAAC;MAC/C,IAAAC,2CAAuB,EAAC;QACtBC,UAAU,EAAEC,eAAU,CAACC,KAAK;QAC5BC,MAAM,EAAEb,WAAW,CAACQ,IAAI,CAACM,EAAE;QAC3BC,MAAM,EAAE,WAAW;QACnBrB,KAAK;QACLsB,MAAM,EAA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
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeWebview = require("react-native-webview");
|
|
10
|
+
var _environmentDomains = require("../environmentDomains.js");
|
|
11
|
+
var _AuthenticationLogs = require("./AuthenticationLogs.js");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
function AuthidOnboardingWebView({
|
|
15
|
+
setError,
|
|
16
|
+
goToAllSet,
|
|
17
|
+
goToTryAgain,
|
|
18
|
+
token,
|
|
19
|
+
user,
|
|
20
|
+
setUser,
|
|
21
|
+
selectedIdType,
|
|
22
|
+
setSelectedIdType,
|
|
23
|
+
environment
|
|
24
|
+
}) {
|
|
25
|
+
const handleMessage = event => {
|
|
26
|
+
const messageData = JSON.parse(event.nativeEvent.data);
|
|
27
|
+
if (messageData.event === 'onSuccess') {
|
|
28
|
+
console.log('onSuccess data', messageData.user);
|
|
29
|
+
if (messageData.user) setUser(messageData.user);
|
|
30
|
+
(0, _AuthenticationLogs.updateAuthenticationLog)({
|
|
31
|
+
isPass: true,
|
|
32
|
+
transactionId: messageData.user.transactionId
|
|
33
|
+
});
|
|
34
|
+
goToAllSet();
|
|
35
|
+
} else if (messageData.event === 'onExit') {
|
|
36
|
+
console.log('User exited');
|
|
37
|
+
setError('');
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
41
|
+
style: {
|
|
42
|
+
display: 'flex',
|
|
43
|
+
width: '100%',
|
|
44
|
+
height: '100%'
|
|
45
|
+
},
|
|
46
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeWebview.WebView, {
|
|
47
|
+
source: {
|
|
48
|
+
uri: `${_environmentDomains.environmentWebviewDomains[environment]}/ReactNativeSDKAuthidWebViewOnBoarding?token=${token}&userId=${user.id}&selectedIdType=${selectedIdType}`
|
|
49
|
+
},
|
|
50
|
+
javaScriptEnabled: true,
|
|
51
|
+
domStorageEnabled: true,
|
|
52
|
+
mediaPlaybackRequiresUserAction: false,
|
|
53
|
+
allowsInlineMediaPlayback: true,
|
|
54
|
+
onLoad: () => console.log('WebView loaded successfully'),
|
|
55
|
+
onError: error => console.error('WebView error:', error),
|
|
56
|
+
onMessage: handleMessage
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
const styles = _reactNative.StyleSheet.create({
|
|
61
|
+
container: {
|
|
62
|
+
flex: 1
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
var _default = exports.default = AuthidOnboardingWebView;
|
|
66
|
+
//# sourceMappingURL=AuthidOnboarding.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeWebview","_environmentDomains","_AuthenticationLogs","_jsxRuntime","e","__esModule","default","AuthidOnboardingWebView","setError","goToAllSet","goToTryAgain","token","user","setUser","selectedIdType","setSelectedIdType","environment","handleMessage","event","messageData","JSON","parse","nativeEvent","data","console","log","updateAuthenticationLog","isPass","transactionId","jsx","View","style","display","width","height","children","WebView","source","uri","environmentWebviewDomains","id","javaScriptEnabled","domStorageEnabled","mediaPlaybackRequiresUserAction","allowsInlineMediaPlayback","onLoad","onError","error","onMessage","styles","StyleSheet","create","container","flex","_default","exports"],"sourceRoot":"../../../src","sources":["components/AuthidOnboarding.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AAGA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AAA+D,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,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,EAAE,mBAAmB1B,cAAc;MAAG,CAAE;MACrK2B,iBAAiB,EAAE,IAAK;MACxBC,iBAAiB,EAAE,IAAK;MACxBC,+BAA+B,EAAE,KAAM;MACvCC,yBAAyB,EAAE,IAAK;MAChCC,MAAM,EAAEA,CAAA,KAAMrB,OAAO,CAACC,GAAG,CAAC,6BAA6B,CAAE;MACzDqB,OAAO,EAAGC,KAAK,IAAKvB,OAAO,CAACuB,KAAK,CAAC,gBAAgB,EAAEA,KAAK,CAAE;MAC3DC,SAAS,EAAE/B;IAAc,CAAE;EAAC,CAC1B,CAAC;AAEX;AACA,MAAMgC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAAEC,SAAS,EAAE;IAAEC,IAAI,EAAE;EAAE;AAAE,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAjD,OAAA,GAE9CC,uBAAuB","ignoreList":[]}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeWebview = require("react-native-webview");
|
|
10
|
+
var _api = _interopRequireDefault(require("../api/api.js"));
|
|
11
|
+
var _environmentDomains = require("../environmentDomains.js");
|
|
12
|
+
var _AuthenticationLogs = require("./AuthenticationLogs.js");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
function ClearLoginWebView({
|
|
16
|
+
setError,
|
|
17
|
+
user,
|
|
18
|
+
setUser,
|
|
19
|
+
token,
|
|
20
|
+
goToAllSet,
|
|
21
|
+
closeBerifyme,
|
|
22
|
+
environment
|
|
23
|
+
}) {
|
|
24
|
+
const getUserBySessionId = async sessionId => {
|
|
25
|
+
const res = await _api.default.user.getUserBySessionId(sessionId);
|
|
26
|
+
if (!res) setError('Please try again.');
|
|
27
|
+
if (res.user) {
|
|
28
|
+
setUser(res.user);
|
|
29
|
+
(0, _AuthenticationLogs.updateAuthenticationLog)({
|
|
30
|
+
isPass: true,
|
|
31
|
+
clearSessionId: sessionId
|
|
32
|
+
});
|
|
33
|
+
} else setError(res.error);
|
|
34
|
+
goToAllSet();
|
|
35
|
+
};
|
|
36
|
+
let isSuccess = false;
|
|
37
|
+
const handleMessage = event => {
|
|
38
|
+
const messageData = JSON.parse(event.nativeEvent.data);
|
|
39
|
+
if (messageData.event === 'onSuccess') {
|
|
40
|
+
isSuccess = true;
|
|
41
|
+
console.log('onSuccess data', messageData.token, messageData.userId, messageData.sessionId);
|
|
42
|
+
if (messageData.sessionId) getUserBySessionId(messageData.sessionId);else setError('');
|
|
43
|
+
} else if (messageData.event === 'onExit') {
|
|
44
|
+
console.log('User exited');
|
|
45
|
+
if (!isSuccess) closeBerifyme();
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
49
|
+
style: {
|
|
50
|
+
display: 'flex',
|
|
51
|
+
width: '100%',
|
|
52
|
+
height: '100%'
|
|
53
|
+
},
|
|
54
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeWebview.WebView, {
|
|
55
|
+
source: {
|
|
56
|
+
uri: `${_environmentDomains.environmentWebviewDomains[environment]}/ReactNativeSDKClearWebViewLogin?token=${token}&userId=${user.id}`
|
|
57
|
+
},
|
|
58
|
+
onLoad: () => console.log('WebView loaded successfully'),
|
|
59
|
+
onError: error => console.error('WebView error:', error),
|
|
60
|
+
onMessage: handleMessage
|
|
61
|
+
})
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
const styles = _reactNative.StyleSheet.create({
|
|
65
|
+
container: {
|
|
66
|
+
flex: 1
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
var _default = exports.default = ClearLoginWebView;
|
|
70
|
+
//# sourceMappingURL=ClearLogin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeWebview","_api","_environmentDomains","_AuthenticationLogs","_jsxRuntime","e","__esModule","default","ClearLoginWebView","setError","user","setUser","token","goToAllSet","closeBerifyme","environment","getUserBySessionId","sessionId","res","berifymeApi","updateAuthenticationLog","isPass","clearSessionId","error","isSuccess","handleMessage","event","messageData","JSON","parse","nativeEvent","data","console","log","userId","jsx","View","style","display","width","height","children","WebView","source","uri","environmentWebviewDomains","id","onLoad","onError","onMessage","styles","StyleSheet","create","container","flex","_default","exports"],"sourceRoot":"../../../src","sources":["components/ClearLogin.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,IAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAEA,IAAAI,mBAAA,GAAAJ,OAAA;AACA,IAAAK,mBAAA,GAAAL,OAAA;AAA+D,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE/D,SAASG,iBAAiBA,CAAC;EACzBC,QAAQ;EACRC,IAAI;EACJC,OAAO;EACPC,KAAK;EAAEC,UAAU;EACjBC,aAAa;EACbC;AASF,CAAC,EAAqB;EAEpB,MAAMC,kBAAkB,GAAG,MAAOC,SAAiB,IAAK;IACtD,MAAMC,GAAG,GAAG,MAAMC,YAAW,CAACT,IAAI,CAACM,kBAAkB,CAACC,SAAS,CAAC;IAChE,IAAI,CAACC,GAAG,EAAET,QAAQ,CAAC,mBAAmB,CAAC;IACvC,IAAIS,GAAG,CAACR,IAAI,E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AG,CAAE;MAC9HC,MAAM,EAAEA,CAAA,KAAMf,OAAO,CAACC,GAAG,CAAC,6BAA6B,CAAE;MACzDe,OAAO,EAAGzB,KAAK,IAAKS,OAAO,CAACT,KAAK,CAAC,gBAAgB,EAAEA,KAAK,CAAE;MAC3D0B,SAAS,EAAExB;IAAc,CAAE;EAAC,CAC1B,CAAC;AAEX;AACA,MAAMyB,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAAEC,SAAS,EAAE;IAAEC,IAAI,EAAE;EAAE;AAAE,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAjD,OAAA,GAE9CC,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeWebview = require("react-native-webview");
|
|
10
|
+
var _api = _interopRequireDefault(require("../api/api.js"));
|
|
11
|
+
var _environmentDomains = require("../environmentDomains.js");
|
|
12
|
+
var _AuthenticationLogs = require("./AuthenticationLogs.js");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
function ClearOnboardingWebView({
|
|
16
|
+
setError,
|
|
17
|
+
token,
|
|
18
|
+
user,
|
|
19
|
+
setUser,
|
|
20
|
+
closeBerifyme,
|
|
21
|
+
goToAllSet,
|
|
22
|
+
environment
|
|
23
|
+
}) {
|
|
24
|
+
const approve = async ({
|
|
25
|
+
id,
|
|
26
|
+
sessionId
|
|
27
|
+
}) => {
|
|
28
|
+
const approveRes = await _api.default.clear.getClearApprove({
|
|
29
|
+
id,
|
|
30
|
+
sessionId
|
|
31
|
+
});
|
|
32
|
+
if (!approveRes) setError('Please try again.');
|
|
33
|
+
if (!approveRes.clearId) {
|
|
34
|
+
setError(approveRes.error);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const res = await _api.default.user.getUserByClearId(approveRes.clearId);
|
|
38
|
+
setUser(res.user);
|
|
39
|
+
(0, _AuthenticationLogs.updateAuthenticationLog)({
|
|
40
|
+
isPass: true,
|
|
41
|
+
clearSessionId: sessionId
|
|
42
|
+
});
|
|
43
|
+
console.log('現在要轉去all set, 人是:', res.user);
|
|
44
|
+
goToAllSet();
|
|
45
|
+
};
|
|
46
|
+
let isSuccess = false;
|
|
47
|
+
const handleMessage = event => {
|
|
48
|
+
const messageData = JSON.parse(event.nativeEvent.data);
|
|
49
|
+
if (messageData.event === 'onSuccess') {
|
|
50
|
+
isSuccess = true;
|
|
51
|
+
console.log('onSuccess data', messageData.token, messageData.userId, messageData.sessionId);
|
|
52
|
+
if (messageData.userId && messageData.sessionId) approve({
|
|
53
|
+
id: messageData.userId,
|
|
54
|
+
sessionId: messageData.sessionId
|
|
55
|
+
});else setError('');
|
|
56
|
+
} else if (messageData.event === 'onExit') {
|
|
57
|
+
console.log('User exited, 他成功了嗎?', isSuccess);
|
|
58
|
+
if (!isSuccess) closeBerifyme();
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
62
|
+
style: {
|
|
63
|
+
display: 'flex',
|
|
64
|
+
width: '100%',
|
|
65
|
+
height: '100%'
|
|
66
|
+
},
|
|
67
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeWebview.WebView, {
|
|
68
|
+
source: {
|
|
69
|
+
uri: `${_environmentDomains.environmentWebviewDomains[environment]}/ReactNativeSDKClearWebViewOnBoarding?token=${token}&userId=${user.id}`
|
|
70
|
+
},
|
|
71
|
+
onLoad: () => console.log('WebView loaded successfully'),
|
|
72
|
+
onError: error => console.error('WebView error:', error),
|
|
73
|
+
onMessage: handleMessage
|
|
74
|
+
})
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
const styles = _reactNative.StyleSheet.create({
|
|
78
|
+
container: {
|
|
79
|
+
flex: 1
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
var _default = exports.default = ClearOnboardingWebView;
|
|
83
|
+
//# sourceMappingURL=ClearOnboarding.js.map
|