@truworth/twc-auth 3.0.5 → 3.0.7
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/package.json +1 -2
- package/build/assets/animation/redirect-home.json +0 -1101
- package/build/assets/cross_icon copy.svg +0 -5
- package/build/assets/cross_icon.svg +0 -5
- package/build/assets/email_icon.svg +0 -6
- package/build/assets/gender-diversity.svg +0 -22
- package/build/assets/loading-spinner.json +0 -1
- package/build/assets/logo.svg +0 -55
- package/build/assets/okay_icon.svg +0 -3
- package/build/src/api/auth.js +0 -36
- package/build/src/api/axiosClient/index.js +0 -5
- package/build/src/api/axiosClient/index.native.js +0 -5
- package/build/src/components/AdvancedTransitionWrapper/index.js +0 -374
- package/build/src/components/AdvancedTransitionWrapper/index.native.js +0 -10
- package/build/src/components/AdvancedTransitionWrapper/types.js +0 -1
- package/build/src/components/ConfirmationModal/index.js +0 -11
- package/build/src/components/ConfirmationModal/index.native.js +0 -15
- package/build/src/components/ConfirmationModal/types.js +0 -1
- package/build/src/components/IonIcon/index.js +0 -11
- package/build/src/components/IonIcon/index.native.js +0 -9
- package/build/src/components/IonIcon/types.js +0 -1
- package/build/src/components/OTPStatusLabel/index.js +0 -10
- package/build/src/components/OTPStatusLabel/index.native.js +0 -21
- package/build/src/components/OTPStatusLabel/types.js +0 -1
- package/build/src/components/PasswordCriteria/hooks/usePasswordCriteria.js +0 -71
- package/build/src/components/PasswordCriteria/index.js +0 -47
- package/build/src/components/PasswordCriteria/index.native.js +0 -22
- package/build/src/components/PasswordCriteria/types.js +0 -1
- package/build/src/components/ScreenLayout/index.js +0 -12
- package/build/src/components/ScreenLayout/index.native.js +0 -18
- package/build/src/components/ScreenLayout/types.js +0 -1
- package/build/src/components/SupportDetails/index.js +0 -9
- package/build/src/components/SupportDetails/index.native.js +0 -6
- package/build/src/components/VerifyEmailOTP/index.js +0 -20
- package/build/src/components/VerifyEmailOTP/index.native.js +0 -22
- package/build/src/components/VerifyEmailOTP/types.js +0 -1
- package/build/src/components/VerifyMobileOTP/index.js +0 -25
- package/build/src/components/VerifyMobileOTP/index.native.js +0 -38
- package/build/src/components/VerifyMobileOTP/types.js +0 -1
- package/build/src/constants/base-url/index.js +0 -5
- package/build/src/constants/base-url/index.native.js +0 -1
- package/build/src/constants/cdn-url/index.js +0 -2
- package/build/src/constants/cdn-url/index.native.js +0 -5
- package/build/src/constants/defaultPolicy.js +0 -9
- package/build/src/constants/password-requirements.js +0 -7
- package/build/src/constants/social-login-options.js +0 -16
- package/build/src/contexts/AuthContext.js +0 -190
- package/build/src/contexts/type.js +0 -1
- package/build/src/enums/index.js +0 -3
- package/build/src/enums/loginMethod.enum.js +0 -8
- package/build/src/enums/registrationMethod.enum.js +0 -7
- package/build/src/enums/socialLogins.enum.js +0 -6
- package/build/src/helpers/network.js +0 -93
- package/build/src/helpers/show-message/index.js +0 -19
- package/build/src/helpers/show-message/index.native.js +0 -14
- package/build/src/helpers/show-message/types.js +0 -1
- package/build/src/helpers/types.js +0 -1
- package/build/src/helpers/validation.js +0 -12
- package/build/src/hooks/internal/useAuthPackageContext.js +0 -9
- package/build/src/hooks/internal/useTimer.js +0 -40
- package/build/src/hooks/useAuthContext.js +0 -10
- package/build/src/hooks/useNavigator.js +0 -83
- package/build/src/hooks/useRequest.js +0 -34
- package/build/src/index.js +0 -23
- package/build/src/navigator/index.js +0 -10
- package/build/src/navigator/index.native.js +0 -27
- package/build/src/screens/CountryCode/components/CountryCodeDropdown/index.js +0 -37
- package/build/src/screens/CountryCode/components/CountryCodeDropdown/index.native.js +0 -6
- package/build/src/screens/CountryCode/components/CountryCodeDropdown/types.js +0 -1
- package/build/src/screens/CountryCode/hooks/internal/useCountryCode.js +0 -38
- package/build/src/screens/CountryCode/index.js +0 -10
- package/build/src/screens/CountryCode/index.native.js +0 -37
- package/build/src/screens/CountryCode/type.js +0 -1
- package/build/src/screens/CreatePassword/hooks/internal/useCreatePassword.js +0 -46
- package/build/src/screens/CreatePassword/index.js +0 -16
- package/build/src/screens/CreatePassword/index.native.js +0 -32
- package/build/src/screens/CreatePassword/type.js +0 -1
- package/build/src/screens/EnterEmail/hooks/internal/useEnterEmail.js +0 -77
- package/build/src/screens/EnterEmail/index.js +0 -58
- package/build/src/screens/EnterEmail/index.native.js +0 -31
- package/build/src/screens/EnterEmail/types.js +0 -1
- package/build/src/screens/EnterMobile/components/ExistingAccountsSheet/hooks/internal/useExistingAccountsSheet.js +0 -36
- package/build/src/screens/EnterMobile/components/ExistingAccountsSheet/index.js +0 -33
- package/build/src/screens/EnterMobile/components/ExistingAccountsSheet/index.native.js +0 -73
- package/build/src/screens/EnterMobile/components/ExistingAccountsSheet/types.js +0 -1
- package/build/src/screens/EnterMobile/hooks/internal/useEnterMobile.js +0 -67
- package/build/src/screens/EnterMobile/index.js +0 -81
- package/build/src/screens/EnterMobile/index.native.js +0 -56
- package/build/src/screens/EnterMobile/types.js +0 -1
- package/build/src/screens/EnterPassword/hooks/internal/useEnterPassword.js +0 -79
- package/build/src/screens/EnterPassword/index.js +0 -68
- package/build/src/screens/EnterPassword/index.native.js +0 -41
- package/build/src/screens/EnterPassword/types.js +0 -1
- package/build/src/screens/Login/components/LoginWebComponent/index.js +0 -63
- package/build/src/screens/Login/components/LoginWebComponent/index.native.js +0 -6
- package/build/src/screens/Login/index.js +0 -10
- package/build/src/screens/Login/index.native.js +0 -6
- package/build/src/screens/LoginWithEmailOTP/hooks/internal/useLoginWithEmailOTP.js +0 -85
- package/build/src/screens/LoginWithEmailOTP/index.js +0 -8
- package/build/src/screens/LoginWithEmailOTP/index.native.js +0 -10
- package/build/src/screens/LoginWithMobileOTP/hooks/internal/useLoginWithMobileOTP.js +0 -72
- package/build/src/screens/LoginWithMobileOTP/index.js +0 -8
- package/build/src/screens/LoginWithMobileOTP/index.native.js +0 -10
- package/build/src/screens/PartnerSSO/PartnerLogin/components/PartnerLoginWebComponent/index.js +0 -77
- package/build/src/screens/PartnerSSO/PartnerLogin/hooks/internal/usePartnerLogin.js +0 -50
- package/build/src/screens/PartnerSSO/PartnerLogin/index.js +0 -2
- package/build/src/screens/PartnerSSO/PartnerLogin/types.js +0 -1
- package/build/src/screens/PartnerSSO/PartnerRegistration/components/PartnerRegistrationWebComponent/index.js +0 -203
- package/build/src/screens/PartnerSSO/PartnerRegistration/hooks/internal/usePartnerRegistration.js +0 -90
- package/build/src/screens/PartnerSSO/PartnerRegistration/index.js +0 -2
- package/build/src/screens/PartnerSSO/PartnerRegistration/types.js +0 -1
- package/build/src/screens/PartnerSSO/index.js +0 -2
- package/build/src/screens/Profile/components/EditMobileNumber/index.js +0 -31
- package/build/src/screens/Profile/components/EditMobileNumber/index.native.js +0 -8
- package/build/src/screens/Profile/components/EditPassword/index.js +0 -29
- package/build/src/screens/Profile/components/EditPassword/index.native.js +0 -8
- package/build/src/screens/Profile/components/EditProfile/index.js +0 -89
- package/build/src/screens/Profile/components/EditProfile/index.native.js +0 -8
- package/build/src/screens/Profile/components/OtpVerificationModal/index.js +0 -61
- package/build/src/screens/Profile/components/OtpVerificationModal/index.native.js +0 -7
- package/build/src/screens/Profile/components/ProfileWebComponent/index.js +0 -80
- package/build/src/screens/Profile/components/ProfileWebComponent/index.native.js +0 -9
- package/build/src/screens/Profile/hooks/internal/useProfile.js +0 -185
- package/build/src/screens/Profile/index.js +0 -6
- package/build/src/screens/Profile/index.native.js +0 -6
- package/build/src/screens/Profile/types.js +0 -1
- package/build/src/screens/ResetPassword/hooks/internal/useResetPassword.js +0 -57
- package/build/src/screens/ResetPassword/index.js +0 -46
- package/build/src/screens/ResetPassword/index.native.js +0 -26
- package/build/src/screens/ResetPassword/types.js +0 -1
- package/build/src/screens/SSOLogin/AuthWebView/index.js +0 -9
- package/build/src/screens/SSOLogin/AuthWebView/index.native.js +0 -42
- package/build/src/screens/SSOLogin/AuthWebView/types.js +0 -1
- package/build/src/screens/SSOLogin/AuthenticationMethods/hooks/internal/useSSOAuthenticationMethods.js +0 -39
- package/build/src/screens/SSOLogin/AuthenticationMethods/index.js +0 -50
- package/build/src/screens/SSOLogin/AuthenticationMethods/index.native.js +0 -59
- package/build/src/screens/SSOLogin/AuthenticationMethods/types.js +0 -1
- package/build/src/screens/SSOLogin/SSOCallback/components/SSOCallbackComponent/index.js +0 -87
- package/build/src/screens/SSOLogin/SSOCallback/components/SSOCallbackComponent/index.native.js +0 -6
- package/build/src/screens/SSOLogin/SSOCallback/hooks/internal/useSSOCallback.js +0 -58
- package/build/src/screens/SSOLogin/SSOCallback/index.js +0 -9
- package/build/src/screens/SSOLogin/SSOCallback/index.native.js +0 -35
- package/build/src/screens/SSOLogin/SSOCallback/types.js +0 -1
- package/build/src/screens/SSOLogin/SearchOrganization/hooks/internal/useSSOSearchOrganization.js +0 -71
- package/build/src/screens/SSOLogin/SearchOrganization/index.js +0 -46
- package/build/src/screens/SSOLogin/SearchOrganization/index.native.js +0 -37
- package/build/src/screens/SSOLogin/SearchOrganization/types.js +0 -1
- package/build/src/screens/SignUp/components/SignUpForm/index.js +0 -215
- package/build/src/screens/SignUp/components/SignUpForm/index.native.js +0 -6
- package/build/src/screens/SignUp/components/SignUpForm/type.js +0 -1
- package/build/src/screens/SignUp/components/SignUpWebComponent/index.js +0 -62
- package/build/src/screens/SignUp/components/SignUpWebComponent/index.native.js +0 -6
- package/build/src/screens/SignUp/components/SignUpWebComponent/types.js +0 -1
- package/build/src/screens/SignUp/hooks/internal/useSignUp.js +0 -134
- package/build/src/screens/SignUp/index.js +0 -6
- package/build/src/screens/SignUp/index.native.js +0 -188
- package/build/src/screens/SignUp/types.js +0 -1
- package/build/src/screens/UserConsent/hooks/internal/useConsent.js +0 -64
- package/build/src/screens/UserConsent/index.js +0 -93
- package/build/src/screens/UserConsent/index.native.js +0 -47
- package/build/src/screens/UserConsent/types.js +0 -1
- package/build/src/screens/VerifyEmail/hooks/internal/useVerifyEmail.js +0 -69
- package/build/src/screens/VerifyEmail/index.js +0 -8
- package/build/src/screens/VerifyEmail/index.native.js +0 -14
- package/build/src/screens/VerifyEmail/types.js +0 -1
- package/build/src/screens/VerifyLinkPrimaryAccountEmailOTP/hooks/internal/useVerifyLinkPrimaryAccountEmailOTP.js +0 -73
- package/build/src/screens/VerifyLinkPrimaryAccountEmailOTP/index.js +0 -8
- package/build/src/screens/VerifyLinkPrimaryAccountEmailOTP/index.native.js +0 -14
- package/build/src/screens/VerifyLinkPrimaryAccountEmailOTP/types.js +0 -1
- package/build/src/screens/VerifyLinkPrimaryAccountMobileOTP/hooks/internal/useVerifyLinkPrimaryAccountMobileOTP.js +0 -83
- package/build/src/screens/VerifyLinkPrimaryAccountMobileOTP/index.js +0 -8
- package/build/src/screens/VerifyLinkPrimaryAccountMobileOTP/index.native.js +0 -10
- package/build/src/screens/VerifyLinkPrimaryAccountMobileOTP/types.js +0 -1
- package/build/src/screens/VerifyMobile/hooks/internal/useVerifyMobile.js +0 -74
- package/build/src/screens/VerifyMobile/index.js +0 -8
- package/build/src/screens/VerifyMobile/index.native.js +0 -9
- package/build/src/screens/VerifyMobile/types.js +0 -1
- package/build/src/screens/VerifyResetPasswordOTP/hooks/internal/useVerifyResetPasswordOTP.js +0 -74
- package/build/src/screens/VerifyResetPasswordOTP/index.js +0 -8
- package/build/src/screens/VerifyResetPasswordOTP/index.native.js +0 -14
- package/build/src/screens/Welcome/SocialAuth/commonSocialAuth.js +0 -127
- package/build/src/screens/Welcome/SocialAuth/hooks/useSocialAuth.native.js +0 -187
- package/build/src/screens/Welcome/SocialAuth/hooks/useSocialAuth.web.js +0 -13
- package/build/src/screens/Welcome/SocialAuth/hooks/web/useFacebookAuth.web.js +0 -115
- package/build/src/screens/Welcome/SocialAuth/hooks/web/useGoogleAuth.web.js +0 -72
- package/build/src/screens/Welcome/components/SocialLoginModal/index.js +0 -9
- package/build/src/screens/Welcome/components/SocialLoginModal/index.native.js +0 -21
- package/build/src/screens/Welcome/components/SocialLoginModal/types.js +0 -1
- package/build/src/screens/Welcome/hooks/internal/useWelcome.js +0 -26
- package/build/src/screens/Welcome/index.js +0 -28
- package/build/src/screens/Welcome/index.native.js +0 -78
- package/build/src/types/types.js +0 -2
- package/build/types/api/auth.d.ts +0 -11
- package/build/types/api/axiosClient/index.d.ts +0 -1
- package/build/types/api/axiosClient/index.native.d.ts +0 -1
- package/build/types/components/AdvancedTransitionWrapper/index.d.ts +0 -3
- package/build/types/components/AdvancedTransitionWrapper/index.native.d.ts +0 -5
- package/build/types/components/AdvancedTransitionWrapper/types.d.ts +0 -25
- package/build/types/components/ConfirmationModal/index.d.ts +0 -3
- package/build/types/components/ConfirmationModal/index.native.d.ts +0 -3
- package/build/types/components/ConfirmationModal/types.d.ts +0 -16
- package/build/types/components/IonIcon/index.d.ts +0 -3
- package/build/types/components/IonIcon/index.native.d.ts +0 -4
- package/build/types/components/IonIcon/types.d.ts +0 -6
- package/build/types/components/OTPStatusLabel/index.d.ts +0 -2
- package/build/types/components/OTPStatusLabel/index.native.d.ts +0 -3
- package/build/types/components/OTPStatusLabel/types.d.ts +0 -6
- package/build/types/components/PasswordCriteria/hooks/usePasswordCriteria.d.ts +0 -8
- package/build/types/components/PasswordCriteria/index.d.ts +0 -3
- package/build/types/components/PasswordCriteria/index.native.d.ts +0 -3
- package/build/types/components/PasswordCriteria/types.d.ts +0 -15
- package/build/types/components/ScreenLayout/index.d.ts +0 -3
- package/build/types/components/ScreenLayout/index.native.d.ts +0 -3
- package/build/types/components/ScreenLayout/types.d.ts +0 -13
- package/build/types/components/SupportDetails/index.d.ts +0 -2
- package/build/types/components/SupportDetails/index.native.d.ts +0 -2
- package/build/types/components/VerifyEmailOTP/index.d.ts +0 -3
- package/build/types/components/VerifyEmailOTP/index.native.d.ts +0 -3
- package/build/types/components/VerifyEmailOTP/types.d.ts +0 -9
- package/build/types/components/VerifyMobileOTP/index.d.ts +0 -3
- package/build/types/components/VerifyMobileOTP/index.native.d.ts +0 -3
- package/build/types/components/VerifyMobileOTP/types.d.ts +0 -9
- package/build/types/constants/base-url/index.d.ts +0 -1
- package/build/types/constants/base-url/index.native.d.ts +0 -1
- package/build/types/constants/cdn-url/index.d.ts +0 -2
- package/build/types/constants/cdn-url/index.native.d.ts +0 -3
- package/build/types/constants/defaultPolicy.d.ts +0 -9
- package/build/types/constants/password-requirements.d.ts +0 -4
- package/build/types/constants/social-login-options.d.ts +0 -3
- package/build/types/contexts/AuthContext.d.ts +0 -38
- package/build/types/contexts/type.d.ts +0 -94
- package/build/types/enums/index.d.ts +0 -3
- package/build/types/enums/loginMethod.enum.d.ts +0 -7
- package/build/types/enums/registrationMethod.enum.d.ts +0 -6
- package/build/types/enums/socialLogins.enum.d.ts +0 -5
- package/build/types/helpers/network.d.ts +0 -5
- package/build/types/helpers/show-message/index.d.ts +0 -3
- package/build/types/helpers/show-message/index.native.d.ts +0 -3
- package/build/types/helpers/show-message/types.d.ts +0 -6
- package/build/types/helpers/types.d.ts +0 -19
- package/build/types/helpers/validation.d.ts +0 -2
- package/build/types/hooks/internal/useAuthPackageContext.d.ts +0 -1
- package/build/types/hooks/internal/useTimer.d.ts +0 -3
- package/build/types/hooks/useAuthContext.d.ts +0 -2
- package/build/types/hooks/useNavigator.d.ts +0 -66
- package/build/types/hooks/useRequest.d.ts +0 -5
- package/build/types/index.d.ts +0 -15
- package/build/types/navigator/index.d.ts +0 -2
- package/build/types/navigator/index.native.d.ts +0 -82
- package/build/types/screens/CountryCode/components/CountryCodeDropdown/index.d.ts +0 -3
- package/build/types/screens/CountryCode/components/CountryCodeDropdown/index.native.d.ts +0 -2
- package/build/types/screens/CountryCode/components/CountryCodeDropdown/types.d.ts +0 -17
- package/build/types/screens/CountryCode/hooks/internal/useCountryCode.d.ts +0 -12
- package/build/types/screens/CountryCode/index.d.ts +0 -2
- package/build/types/screens/CountryCode/index.native.d.ts +0 -2
- package/build/types/screens/CountryCode/type.d.ts +0 -11
- package/build/types/screens/CreatePassword/hooks/internal/useCreatePassword.d.ts +0 -37
- package/build/types/screens/CreatePassword/index.d.ts +0 -3
- package/build/types/screens/CreatePassword/index.native.d.ts +0 -4
- package/build/types/screens/CreatePassword/type.d.ts +0 -43
- package/build/types/screens/EnterEmail/hooks/internal/useEnterEmail.d.ts +0 -19
- package/build/types/screens/EnterEmail/index.d.ts +0 -3
- package/build/types/screens/EnterEmail/index.native.d.ts +0 -4
- package/build/types/screens/EnterEmail/types.d.ts +0 -13
- package/build/types/screens/EnterMobile/components/ExistingAccountsSheet/hooks/internal/useExistingAccountsSheet.d.ts +0 -13
- package/build/types/screens/EnterMobile/components/ExistingAccountsSheet/index.d.ts +0 -3
- package/build/types/screens/EnterMobile/components/ExistingAccountsSheet/index.native.d.ts +0 -3
- package/build/types/screens/EnterMobile/components/ExistingAccountsSheet/types.d.ts +0 -28
- package/build/types/screens/EnterMobile/hooks/internal/useEnterMobile.d.ts +0 -15
- package/build/types/screens/EnterMobile/index.d.ts +0 -4
- package/build/types/screens/EnterMobile/index.native.d.ts +0 -4
- package/build/types/screens/EnterMobile/types.d.ts +0 -44
- package/build/types/screens/EnterPassword/hooks/internal/useEnterPassword.d.ts +0 -25
- package/build/types/screens/EnterPassword/index.d.ts +0 -3
- package/build/types/screens/EnterPassword/index.native.d.ts +0 -4
- package/build/types/screens/EnterPassword/types.d.ts +0 -24
- package/build/types/screens/Login/components/LoginWebComponent/index.d.ts +0 -2
- package/build/types/screens/Login/components/LoginWebComponent/index.native.d.ts +0 -2
- package/build/types/screens/Login/index.d.ts +0 -2
- package/build/types/screens/Login/index.native.d.ts +0 -2
- package/build/types/screens/LoginWithEmailOTP/hooks/internal/useLoginWithEmailOTP.d.ts +0 -17
- package/build/types/screens/LoginWithEmailOTP/index.d.ts +0 -7
- package/build/types/screens/LoginWithEmailOTP/index.native.d.ts +0 -4
- package/build/types/screens/LoginWithMobileOTP/hooks/internal/useLoginWithMobileOTP.d.ts +0 -11
- package/build/types/screens/LoginWithMobileOTP/index.d.ts +0 -5
- package/build/types/screens/LoginWithMobileOTP/index.native.d.ts +0 -4
- package/build/types/screens/PartnerSSO/PartnerLogin/components/PartnerLoginWebComponent/index.d.ts +0 -25
- package/build/types/screens/PartnerSSO/PartnerLogin/hooks/internal/usePartnerLogin.d.ts +0 -8
- package/build/types/screens/PartnerSSO/PartnerLogin/index.d.ts +0 -2
- package/build/types/screens/PartnerSSO/PartnerLogin/types.d.ts +0 -35
- package/build/types/screens/PartnerSSO/PartnerRegistration/components/PartnerRegistrationWebComponent/index.d.ts +0 -24
- package/build/types/screens/PartnerSSO/PartnerRegistration/hooks/internal/usePartnerRegistration.d.ts +0 -8
- package/build/types/screens/PartnerSSO/PartnerRegistration/index.d.ts +0 -2
- package/build/types/screens/PartnerSSO/PartnerRegistration/types.d.ts +0 -63
- package/build/types/screens/PartnerSSO/index.d.ts +0 -2
- package/build/types/screens/Profile/components/EditMobileNumber/index.d.ts +0 -6
- package/build/types/screens/Profile/components/EditMobileNumber/index.native.d.ts +0 -3
- package/build/types/screens/Profile/components/EditPassword/index.d.ts +0 -6
- package/build/types/screens/Profile/components/EditPassword/index.native.d.ts +0 -3
- package/build/types/screens/Profile/components/EditProfile/index.d.ts +0 -6
- package/build/types/screens/Profile/components/EditProfile/index.native.d.ts +0 -3
- package/build/types/screens/Profile/components/OtpVerificationModal/index.d.ts +0 -4
- package/build/types/screens/Profile/components/OtpVerificationModal/index.native.d.ts +0 -3
- package/build/types/screens/Profile/components/ProfileWebComponent/index.d.ts +0 -4
- package/build/types/screens/Profile/components/ProfileWebComponent/index.native.d.ts +0 -3
- package/build/types/screens/Profile/hooks/internal/useProfile.d.ts +0 -26
- package/build/types/screens/Profile/index.d.ts +0 -7
- package/build/types/screens/Profile/index.native.d.ts +0 -7
- package/build/types/screens/Profile/types.d.ts +0 -53
- package/build/types/screens/ResetPassword/hooks/internal/useResetPassword.d.ts +0 -29
- package/build/types/screens/ResetPassword/index.d.ts +0 -3
- package/build/types/screens/ResetPassword/index.native.d.ts +0 -4
- package/build/types/screens/ResetPassword/types.d.ts +0 -11
- package/build/types/screens/SSOLogin/AuthWebView/index.d.ts +0 -2
- package/build/types/screens/SSOLogin/AuthWebView/index.native.d.ts +0 -4
- package/build/types/screens/SSOLogin/AuthWebView/types.d.ts +0 -8
- package/build/types/screens/SSOLogin/AuthenticationMethods/hooks/internal/useSSOAuthenticationMethods.d.ts +0 -9
- package/build/types/screens/SSOLogin/AuthenticationMethods/index.d.ts +0 -3
- package/build/types/screens/SSOLogin/AuthenticationMethods/index.native.d.ts +0 -4
- package/build/types/screens/SSOLogin/AuthenticationMethods/types.d.ts +0 -14
- package/build/types/screens/SSOLogin/SSOCallback/components/SSOCallbackComponent/index.d.ts +0 -6
- package/build/types/screens/SSOLogin/SSOCallback/components/SSOCallbackComponent/index.native.d.ts +0 -2
- package/build/types/screens/SSOLogin/SSOCallback/hooks/internal/useSSOCallback.d.ts +0 -15
- package/build/types/screens/SSOLogin/SSOCallback/index.d.ts +0 -2
- package/build/types/screens/SSOLogin/SSOCallback/index.native.d.ts +0 -4
- package/build/types/screens/SSOLogin/SSOCallback/types.d.ts +0 -14
- package/build/types/screens/SSOLogin/SearchOrganization/hooks/internal/useSSOSearchOrganization.d.ts +0 -18
- package/build/types/screens/SSOLogin/SearchOrganization/index.d.ts +0 -3
- package/build/types/screens/SSOLogin/SearchOrganization/index.native.d.ts +0 -4
- package/build/types/screens/SSOLogin/SearchOrganization/types.d.ts +0 -13
- package/build/types/screens/SignUp/components/SignUpForm/index.d.ts +0 -3
- package/build/types/screens/SignUp/components/SignUpForm/index.native.d.ts +0 -2
- package/build/types/screens/SignUp/components/SignUpForm/type.d.ts +0 -6
- package/build/types/screens/SignUp/components/SignUpWebComponent/index.d.ts +0 -2
- package/build/types/screens/SignUp/components/SignUpWebComponent/index.native.d.ts +0 -2
- package/build/types/screens/SignUp/components/SignUpWebComponent/types.d.ts +0 -9
- package/build/types/screens/SignUp/hooks/internal/useSignUp.d.ts +0 -48
- package/build/types/screens/SignUp/index.d.ts +0 -2
- package/build/types/screens/SignUp/index.native.d.ts +0 -4
- package/build/types/screens/SignUp/types.d.ts +0 -40
- package/build/types/screens/UserConsent/hooks/internal/useConsent.d.ts +0 -10
- package/build/types/screens/UserConsent/index.d.ts +0 -3
- package/build/types/screens/UserConsent/index.native.d.ts +0 -4
- package/build/types/screens/UserConsent/types.d.ts +0 -33
- package/build/types/screens/VerifyEmail/hooks/internal/useVerifyEmail.d.ts +0 -19
- package/build/types/screens/VerifyEmail/index.d.ts +0 -3
- package/build/types/screens/VerifyEmail/index.native.d.ts +0 -4
- package/build/types/screens/VerifyEmail/types.d.ts +0 -8
- package/build/types/screens/VerifyLinkPrimaryAccountEmailOTP/hooks/internal/useVerifyLinkPrimaryAccountEmailOTP.d.ts +0 -15
- package/build/types/screens/VerifyLinkPrimaryAccountEmailOTP/index.d.ts +0 -3
- package/build/types/screens/VerifyLinkPrimaryAccountEmailOTP/index.native.d.ts +0 -4
- package/build/types/screens/VerifyLinkPrimaryAccountEmailOTP/types.d.ts +0 -14
- package/build/types/screens/VerifyLinkPrimaryAccountMobileOTP/hooks/internal/useVerifyLinkPrimaryAccountMobileOTP.d.ts +0 -17
- package/build/types/screens/VerifyLinkPrimaryAccountMobileOTP/index.d.ts +0 -3
- package/build/types/screens/VerifyLinkPrimaryAccountMobileOTP/index.native.d.ts +0 -4
- package/build/types/screens/VerifyLinkPrimaryAccountMobileOTP/types.d.ts +0 -5
- package/build/types/screens/VerifyMobile/hooks/internal/useVerifyMobile.d.ts +0 -14
- package/build/types/screens/VerifyMobile/index.d.ts +0 -3
- package/build/types/screens/VerifyMobile/index.native.d.ts +0 -4
- package/build/types/screens/VerifyMobile/types.d.ts +0 -5
- package/build/types/screens/VerifyResetPasswordOTP/hooks/internal/useVerifyResetPasswordOTP.d.ts +0 -19
- package/build/types/screens/VerifyResetPasswordOTP/index.d.ts +0 -7
- package/build/types/screens/VerifyResetPasswordOTP/index.native.d.ts +0 -4
- package/build/types/screens/Welcome/SocialAuth/commonSocialAuth.d.ts +0 -50
- package/build/types/screens/Welcome/SocialAuth/hooks/useSocialAuth.native.d.ts +0 -7
- package/build/types/screens/Welcome/SocialAuth/hooks/useSocialAuth.web.d.ts +0 -7
- package/build/types/screens/Welcome/SocialAuth/hooks/web/useFacebookAuth.web.d.ts +0 -5
- package/build/types/screens/Welcome/SocialAuth/hooks/web/useGoogleAuth.web.d.ts +0 -4
- package/build/types/screens/Welcome/components/SocialLoginModal/index.d.ts +0 -3
- package/build/types/screens/Welcome/components/SocialLoginModal/index.native.d.ts +0 -3
- package/build/types/screens/Welcome/components/SocialLoginModal/types.d.ts +0 -8
- package/build/types/screens/Welcome/hooks/internal/useWelcome.d.ts +0 -22
- package/build/types/screens/Welcome/index.d.ts +0 -4
- package/build/types/screens/Welcome/index.native.d.ts +0 -4
- package/build/types/types/types.d.ts +0 -115
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { AuthScreensProps } from '../../../navigator/index.native';
|
|
2
|
-
type ScreenProps = AuthScreensProps<'SSOAuthWebView'>;
|
|
3
|
-
declare const SSOAuthWebView: ({ navigation, route }: ScreenProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default SSOAuthWebView;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { SSOInitiationData } from "../../types";
|
|
2
|
-
declare const useSSOAuthenticationMethods: () => {
|
|
3
|
-
loading: boolean;
|
|
4
|
-
initiateSSOLogin: ({ clientId, onSSOLoginInitiated }: {
|
|
5
|
-
clientId: number;
|
|
6
|
-
onSSOLoginInitiated: (data: SSOInitiationData) => void;
|
|
7
|
-
}) => void;
|
|
8
|
-
};
|
|
9
|
-
export { useSSOAuthenticationMethods };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { AuthScreensProps } from '../../../navigator/index.native';
|
|
2
|
-
type ScreenProps = AuthScreensProps<'SSOAuthenticationMethods'>;
|
|
3
|
-
declare const SSOAuthenticationMethods: ({ route }: ScreenProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default SSOAuthenticationMethods;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Client } from "../../../types/types";
|
|
2
|
-
type AuthMethod = 'oidc' | 'saml';
|
|
3
|
-
interface SSOInitiationData {
|
|
4
|
-
clientId: number;
|
|
5
|
-
authenticationUrl: string;
|
|
6
|
-
redirectUri?: string;
|
|
7
|
-
authMethod: AuthMethod;
|
|
8
|
-
}
|
|
9
|
-
interface SSOAuthenticationMethodsProps {
|
|
10
|
-
client: Client;
|
|
11
|
-
onPressBack: () => void;
|
|
12
|
-
handleMobileLogin: () => void;
|
|
13
|
-
}
|
|
14
|
-
export type { SSOAuthenticationMethodsProps, SSOInitiationData, AuthMethod };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { AuthMethod } from '../../../AuthenticationMethods/types';
|
|
2
|
-
interface SSOCallbackComponentsProps {
|
|
3
|
-
authMethodOverride?: AuthMethod;
|
|
4
|
-
}
|
|
5
|
-
declare const SSOCallbackComponents: ({ authMethodOverride }?: SSOCallbackComponentsProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export { SSOCallbackComponents };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { useSSOCallbackProps, SignUpData } from "../../types";
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
* Hook for managing SSOCallback screen state and auth context integration.
|
|
5
|
-
* This hook is not exposed to package consumers.
|
|
6
|
-
*
|
|
7
|
-
* Supports both OIDC and SAML flows:
|
|
8
|
-
* - OIDC: Calls /callback endpoint with authorization code
|
|
9
|
-
* - SAML: Calls /saml-sso-complete endpoint with exchange code
|
|
10
|
-
*/
|
|
11
|
-
declare const useSSOCallback: ({ clientId, code, authMethod, isReady }: useSSOCallbackProps) => {
|
|
12
|
-
result: SignUpData | null;
|
|
13
|
-
error: string | null;
|
|
14
|
-
};
|
|
15
|
-
export { useSSOCallback };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { AuthMethod } from '../AuthenticationMethods/types';
|
|
2
|
-
interface SignUpData {
|
|
3
|
-
email: string;
|
|
4
|
-
firstName: string;
|
|
5
|
-
lastName: string;
|
|
6
|
-
registrationToken: string;
|
|
7
|
-
}
|
|
8
|
-
interface useSSOCallbackProps {
|
|
9
|
-
code?: string;
|
|
10
|
-
clientId: number | string;
|
|
11
|
-
authMethod?: AuthMethod;
|
|
12
|
-
isReady?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export type { useSSOCallbackProps, SignUpData };
|
package/build/types/screens/SSOLogin/SearchOrganization/hooks/internal/useSSOSearchOrganization.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { Client } from "../../types";
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
* Hook for managing SSOSearchOrganization screen state and auth context integration.
|
|
5
|
-
* This hook is not exposed to package consumers.
|
|
6
|
-
*/
|
|
7
|
-
declare const useSSOSearchOrganization: () => {
|
|
8
|
-
search: string;
|
|
9
|
-
clientList: Client[];
|
|
10
|
-
searchLoading: boolean;
|
|
11
|
-
noSearchResult: boolean;
|
|
12
|
-
selectedClient: Client | undefined;
|
|
13
|
-
setSearch: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
14
|
-
handleSelect: (client: Client) => void;
|
|
15
|
-
setNoSearchResult: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
16
|
-
setSelectedClient: import("react").Dispatch<import("react").SetStateAction<Client | undefined>>;
|
|
17
|
-
};
|
|
18
|
-
export { useSSOSearchOrganization };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { AuthScreensProps } from '../../../navigator/index.native';
|
|
2
|
-
type ScreenProps = AuthScreensProps<'SSOSearchOrganization'>;
|
|
3
|
-
declare const SSOSearchOrganization: ({ navigation }: ScreenProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default SSOSearchOrganization;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Client } from "../../../types/types";
|
|
2
|
-
interface SSOSearchOrganizationProps {
|
|
3
|
-
onPressBack: () => void;
|
|
4
|
-
onContinue: (client: Client) => void;
|
|
5
|
-
}
|
|
6
|
-
type OptionWithClient = {
|
|
7
|
-
key: string;
|
|
8
|
-
value: string;
|
|
9
|
-
image: string;
|
|
10
|
-
client: Client;
|
|
11
|
-
label: JSX.Element;
|
|
12
|
-
};
|
|
13
|
-
export type { Client, SSOSearchOrganizationProps, OptionWithClient };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type React from "react";
|
|
2
|
-
import type { PersonalDetails } from "../../../../types/types";
|
|
3
|
-
interface UserDetailsProps {
|
|
4
|
-
setUserConsent: (consent: boolean) => void;
|
|
5
|
-
setUserDetails: React.Dispatch<React.SetStateAction<PersonalDetails | undefined>>;
|
|
6
|
-
setValidDetail: (valid: boolean) => void;
|
|
7
|
-
userDetails?: PersonalDetails;
|
|
8
|
-
}
|
|
9
|
-
export type { UserDetailsProps };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { InitializeValuesParams, LinkedAccount } from "../../types";
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
* Hook for managing SignUp screen state and auth context integration.
|
|
5
|
-
*/
|
|
6
|
-
declare const useSignUp: () => {
|
|
7
|
-
loading: boolean;
|
|
8
|
-
firstName: string;
|
|
9
|
-
lastName: string;
|
|
10
|
-
gender: string;
|
|
11
|
-
setGender: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
12
|
-
datePicker: boolean;
|
|
13
|
-
showDatePicker: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
14
|
-
selectedDOB: string;
|
|
15
|
-
setSelectedDOB: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
16
|
-
phone: string;
|
|
17
|
-
setPhone: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
18
|
-
referralCode: string;
|
|
19
|
-
setReferralCode: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
20
|
-
countryCode: string;
|
|
21
|
-
setCountryCode: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
22
|
-
error: {
|
|
23
|
-
[key: string]: boolean;
|
|
24
|
-
};
|
|
25
|
-
setError: import("react").Dispatch<import("react").SetStateAction<{
|
|
26
|
-
[key: string]: boolean;
|
|
27
|
-
}>>;
|
|
28
|
-
email: string;
|
|
29
|
-
setEmail: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
30
|
-
linkedAccounts: LinkedAccount[];
|
|
31
|
-
linkedAccountsSheet: boolean;
|
|
32
|
-
showLinkedAccountsSheet: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
33
|
-
handleFirstNameChange: (text: string) => void;
|
|
34
|
-
handleLastNameChange: (text: string) => void;
|
|
35
|
-
handleEmailChange: (emailInput: string) => void;
|
|
36
|
-
handleMobileChange: (mobileInput: string) => void;
|
|
37
|
-
handleSubmit: ({ onProceed }: {
|
|
38
|
-
onProceed: () => void;
|
|
39
|
-
}) => Promise<void>;
|
|
40
|
-
getLoginTypeText: (loginType: number) => "Facebook" | "Google" | "Apple" | "Email" | "Microsoft";
|
|
41
|
-
disabled: boolean;
|
|
42
|
-
registrationMethod: import("../../../../types/types").RegistrationMethod;
|
|
43
|
-
onRegistrationMethodChange: (method: import("../../../../types/types").RegistrationMethod) => void;
|
|
44
|
-
appName: string | undefined;
|
|
45
|
-
termsAndConditionsUrl: string | undefined;
|
|
46
|
-
initializeValues: (params: InitializeValuesParams) => void;
|
|
47
|
-
};
|
|
48
|
-
export { useSignUp };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { PersonalDetails } from "../../types/types";
|
|
2
|
-
interface UseSignUpProps {
|
|
3
|
-
preFirstName?: string;
|
|
4
|
-
preLastName?: string;
|
|
5
|
-
registrationMethod?: string;
|
|
6
|
-
onNavigateToCreatePassword: (registrationParams: PersonalDetails) => void;
|
|
7
|
-
}
|
|
8
|
-
interface MobileInputProps {
|
|
9
|
-
phone: string;
|
|
10
|
-
countryCode: string;
|
|
11
|
-
onChangeCountryCode: () => void;
|
|
12
|
-
onChangeMobile: (v: string) => void;
|
|
13
|
-
onCross: () => void;
|
|
14
|
-
error: {
|
|
15
|
-
show: boolean;
|
|
16
|
-
message: string;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
interface InitializeValuesParams {
|
|
20
|
-
firstName?: string;
|
|
21
|
-
lastName?: string;
|
|
22
|
-
email?: string;
|
|
23
|
-
countryCode?: string;
|
|
24
|
-
}
|
|
25
|
-
interface LinkedAccount {
|
|
26
|
-
memberId: string;
|
|
27
|
-
name: string;
|
|
28
|
-
email: string;
|
|
29
|
-
loginType: number;
|
|
30
|
-
createdOn: string;
|
|
31
|
-
}
|
|
32
|
-
interface LinkedAccountsSheetProps {
|
|
33
|
-
visible: boolean;
|
|
34
|
-
hide: () => void;
|
|
35
|
-
linkedAccounts: LinkedAccount[];
|
|
36
|
-
countryCode: string;
|
|
37
|
-
phone: string;
|
|
38
|
-
getLoginTypeText: (loginType: number) => string;
|
|
39
|
-
}
|
|
40
|
-
export type { UseSignUpProps, MobileInputProps, InitializeValuesParams, LinkedAccount, LinkedAccountsSheetProps };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { onAgreeHandlerProps } from "../../types";
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
* Internal hook for managing UserConsent screen state and auth context integration. Not exposed to package consumers.
|
|
5
|
-
*/
|
|
6
|
-
declare const useConsent: () => {
|
|
7
|
-
loading: boolean;
|
|
8
|
-
onAgree: ({ userDetails, source, onResult }: onAgreeHandlerProps) => void;
|
|
9
|
-
};
|
|
10
|
-
export { useConsent };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { MemberProfile, PersonalDetails } from "../../types/types";
|
|
2
|
-
interface UserConsentProps {
|
|
3
|
-
userDetails: PersonalDetails;
|
|
4
|
-
handleBack: () => void;
|
|
5
|
-
}
|
|
6
|
-
interface onAgreeHandlerResponse {
|
|
7
|
-
token: string;
|
|
8
|
-
member: MemberProfile;
|
|
9
|
-
emailVerificationRequired: boolean;
|
|
10
|
-
mobileVerificationRequired: boolean;
|
|
11
|
-
sessionToken: string;
|
|
12
|
-
}
|
|
13
|
-
interface onAgreeHandlerProps {
|
|
14
|
-
userDetails: PersonalDetails;
|
|
15
|
-
source: string;
|
|
16
|
-
onResult: (res: onAgreeHandlerResponse) => void;
|
|
17
|
-
}
|
|
18
|
-
interface VerifyMobileProps {
|
|
19
|
-
visible: boolean;
|
|
20
|
-
hide: () => void;
|
|
21
|
-
sessionToken: string;
|
|
22
|
-
phone: string;
|
|
23
|
-
}
|
|
24
|
-
interface VerifyEmailProps {
|
|
25
|
-
visible: boolean;
|
|
26
|
-
hide: () => void;
|
|
27
|
-
sessionToken: string;
|
|
28
|
-
email: string;
|
|
29
|
-
onVerifiedOTP: (params: {
|
|
30
|
-
sessionToken: string;
|
|
31
|
-
}) => void;
|
|
32
|
-
}
|
|
33
|
-
export type { UserConsentProps, onAgreeHandlerProps, onAgreeHandlerResponse, VerifyMobileProps, VerifyEmailProps };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @internal
|
|
3
|
-
* Hook for managing VerifyEmail screen state and auth context integration.
|
|
4
|
-
* This hook is not exposed to package consumers.
|
|
5
|
-
*/
|
|
6
|
-
declare const useVerifyEmail: ({ sessionToken }: {
|
|
7
|
-
sessionToken: string;
|
|
8
|
-
}) => {
|
|
9
|
-
resendOTP: () => void;
|
|
10
|
-
validateOTP: ({ otp, onVerifiedOTP }: {
|
|
11
|
-
otp: string;
|
|
12
|
-
onVerifiedOTP: (result: {
|
|
13
|
-
sessionToken: string;
|
|
14
|
-
}) => void;
|
|
15
|
-
}) => void;
|
|
16
|
-
status: string;
|
|
17
|
-
resendOTPCounter: number;
|
|
18
|
-
};
|
|
19
|
-
export { useVerifyEmail };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ValidateOTPParams } from "../../types";
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
* Hook for managing useVerifyLinkPrimaryAccountEmailOTP hook state and auth context integration.
|
|
5
|
-
* This hook is not exposed to package consumers.
|
|
6
|
-
*/
|
|
7
|
-
declare const useVerifyLinkPrimaryAccountEmailOTP: ({ sessionToken }: {
|
|
8
|
-
sessionToken: string;
|
|
9
|
-
}) => {
|
|
10
|
-
status: "loading" | "idle" | "valid" | "invalid";
|
|
11
|
-
resendOTPCounter: number;
|
|
12
|
-
resendOTP: () => void;
|
|
13
|
-
validateOTP: ({ otp, onVerifiedOTP }: ValidateOTPParams) => void;
|
|
14
|
-
};
|
|
15
|
-
export { useVerifyLinkPrimaryAccountEmailOTP };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { VerifyLinkPrimaryAccountEmailOTPProps } from "./types";
|
|
2
|
-
declare const VerifyLinkPrimaryAccountEmailOTP: ({ email, sessionToken, onVerifiedOTP }: VerifyLinkPrimaryAccountEmailOTPProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export default VerifyLinkPrimaryAccountEmailOTP;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { AuthScreensProps } from "../../navigator/index.native";
|
|
2
|
-
type ScreenProps = AuthScreensProps<'VerifyLinkPrimaryAccountEmailOTP'>;
|
|
3
|
-
declare const VerifyLinkPrimaryAccountEmailOTP: ({ navigation, route }: ScreenProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default VerifyLinkPrimaryAccountEmailOTP;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
interface VerifyLinkPrimaryAccountEmailOTPProps {
|
|
2
|
-
sessionToken: string;
|
|
3
|
-
email: string;
|
|
4
|
-
onVerifiedOTP: ({ sessionToken }: {
|
|
5
|
-
sessionToken: string;
|
|
6
|
-
}) => void;
|
|
7
|
-
}
|
|
8
|
-
interface ValidateOTPParams {
|
|
9
|
-
otp: string;
|
|
10
|
-
onVerifiedOTP: ({ sessionToken }: {
|
|
11
|
-
sessionToken: string;
|
|
12
|
-
}) => void;
|
|
13
|
-
}
|
|
14
|
-
export type { VerifyLinkPrimaryAccountEmailOTPProps, ValidateOTPParams };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @internal
|
|
3
|
-
* Hook for managing useVerifyLinkPrimaryAccountMobileOTP hook state and auth context integration.
|
|
4
|
-
* This hook is not exposed to package consumers.
|
|
5
|
-
*/
|
|
6
|
-
declare const useVerifyLinkPrimaryAccountMobileOTP: ({ sessionToken }: {
|
|
7
|
-
sessionToken: string;
|
|
8
|
-
}) => {
|
|
9
|
-
timer: number;
|
|
10
|
-
status: "timer" | "loading" | "valid" | "invalid";
|
|
11
|
-
sendOTP: () => void;
|
|
12
|
-
validateOTP: ({ otp, source }: {
|
|
13
|
-
otp: string;
|
|
14
|
-
source: string;
|
|
15
|
-
}) => void;
|
|
16
|
-
};
|
|
17
|
-
export { useVerifyLinkPrimaryAccountMobileOTP };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { VerifyLinkPrimaryAccountMobileOTPProps } from "./types";
|
|
2
|
-
declare const VerifyLinkPrimaryAccountMobileOTP: ({ phone, sessionToken }: VerifyLinkPrimaryAccountMobileOTPProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export default VerifyLinkPrimaryAccountMobileOTP;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { AuthScreensProps } from "../../navigator/index.native";
|
|
2
|
-
type ScreenProps = AuthScreensProps<'VerifyLinkPrimaryAccountMobileOTP'>;
|
|
3
|
-
declare const VerifyLinkPrimaryAccountMobileOTP: ({ route }: ScreenProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default VerifyLinkPrimaryAccountMobileOTP;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @internal
|
|
3
|
-
* Hook for managing VerifyMobile screen state and auth context integration.
|
|
4
|
-
* This hook is not exposed to package consumers.
|
|
5
|
-
*/
|
|
6
|
-
declare const useVerifyMobile: ({ sessionToken }: {
|
|
7
|
-
sessionToken: string;
|
|
8
|
-
}) => {
|
|
9
|
-
timer: number;
|
|
10
|
-
status: string;
|
|
11
|
-
resendOTP: () => void;
|
|
12
|
-
validateOTP: (otp: string) => void;
|
|
13
|
-
};
|
|
14
|
-
export { useVerifyMobile };
|
package/build/types/screens/VerifyResetPasswordOTP/hooks/internal/useVerifyResetPasswordOTP.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @internal
|
|
3
|
-
* Hook for managing VerifyResetPasswordOTP screen state and auth context integration.
|
|
4
|
-
* This hook is not exposed to package consumers.
|
|
5
|
-
*/
|
|
6
|
-
declare const useVerifyResetPasswordOTP: ({ email }: {
|
|
7
|
-
email: string;
|
|
8
|
-
}) => {
|
|
9
|
-
status: "loading" | "idle" | "valid" | "invalid";
|
|
10
|
-
resendOTPCounter: number;
|
|
11
|
-
sendOtp: () => void;
|
|
12
|
-
verifyOtp: ({ otp, onVerifiedOTP }: {
|
|
13
|
-
otp: string;
|
|
14
|
-
onVerifiedOTP: (data: {
|
|
15
|
-
sessionToken: string;
|
|
16
|
-
}) => void;
|
|
17
|
-
}) => void;
|
|
18
|
-
};
|
|
19
|
-
export { useVerifyResetPasswordOTP };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { AuthScreensProps } from '../../navigator/index.native';
|
|
2
|
-
type ScreenProps = AuthScreensProps<'VerifyResetPasswordOTP'>;
|
|
3
|
-
declare const VerifyResetPasswordOTP: ({ navigation, route }: ScreenProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default VerifyResetPasswordOTP;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import type { MemberProfile } from "../../../types/types";
|
|
2
|
-
export declare enum SocialAuthStatus {
|
|
3
|
-
REGISTER = "REGISTER",
|
|
4
|
-
INVALID = "INVALID",
|
|
5
|
-
SUCCESS = "SUCCESS"
|
|
6
|
-
}
|
|
7
|
-
type Platform = "web" | "ios" | "android";
|
|
8
|
-
interface BaseSocialLoginParams {
|
|
9
|
-
email: string;
|
|
10
|
-
platform: Platform;
|
|
11
|
-
}
|
|
12
|
-
export interface GoogleLoginParams extends BaseSocialLoginParams {
|
|
13
|
-
googleIdentityToken: string;
|
|
14
|
-
}
|
|
15
|
-
export interface FacebookLoginParams extends BaseSocialLoginParams {
|
|
16
|
-
facebookIdentityToken: string;
|
|
17
|
-
}
|
|
18
|
-
export interface AppleLoginParams extends BaseSocialLoginParams {
|
|
19
|
-
appleIdentityToken: string;
|
|
20
|
-
}
|
|
21
|
-
export type SocialAuthResult = {
|
|
22
|
-
status: SocialAuthStatus.REGISTER;
|
|
23
|
-
data: {
|
|
24
|
-
email: string;
|
|
25
|
-
};
|
|
26
|
-
} | {
|
|
27
|
-
status: SocialAuthStatus.INVALID;
|
|
28
|
-
data: {
|
|
29
|
-
existingLoginType?: string;
|
|
30
|
-
};
|
|
31
|
-
} | {
|
|
32
|
-
status: SocialAuthStatus.SUCCESS;
|
|
33
|
-
data: {
|
|
34
|
-
token: string;
|
|
35
|
-
member: MemberProfile;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* Handles Google authentication
|
|
40
|
-
*/
|
|
41
|
-
export declare const handleGoogleAuth: ({ email, googleIdentityToken, platform, }: GoogleLoginParams) => Promise<SocialAuthResult>;
|
|
42
|
-
/**
|
|
43
|
-
* Handles Facebook authentication
|
|
44
|
-
*/
|
|
45
|
-
export declare const handleFacebookAuth: ({ email, facebookIdentityToken, platform }: FacebookLoginParams) => Promise<SocialAuthResult>;
|
|
46
|
-
/**
|
|
47
|
-
* Handles Apple authentication
|
|
48
|
-
*/
|
|
49
|
-
export declare const handleAppleAuth: ({ email, appleIdentityToken, platform }: AppleLoginParams) => Promise<SocialAuthResult>;
|
|
50
|
-
export {};
|