forget pass apis added

This commit is contained in:
2025-08-10 00:27:37 +03:30
parent cd86254ce1
commit 08bfe5c979
10 changed files with 150 additions and 38 deletions

View File

@@ -7,7 +7,7 @@ import { CompleteSignUp } from './CompleteSignUp';
import { EnterPasswordForm } from './EnterPasswordForm';
import { getUserStatusByPhoneNumberOrEmail } from '../../api/authorizationAPI';
import { UserStatus } from '../../types/userTypes';
import type { CountryCode } from '@/types/commonTypes';
import type { CountryCode, GUID } from '@/types/commonTypes';
import { VerifyPhoneNumber } from './VerifyPhoneNumber';
export const AuthenticationSteps = (): JSX.Element => {
@@ -48,7 +48,11 @@ export const AuthenticationSteps = (): JSX.Element => {
}
};
const handleOTPVerfied = (registeredWithoutPhoneNumber: boolean = false) => {
const handleOTPVerfied = (
registeredWithoutPhoneNumber: boolean = false,
userId: GUID,
) => {
localStorage.setItem('userID', userId);
// if (registeredWithoutPhoneNumber) {
// setCurrentStep('addPhoneNumber');
// }