diff --git a/components/EditProfilePage/PhoneVerificationModal.tsx b/components/EditProfilePage/PhoneVerificationModal.tsx index 718dbc299..a08c78370 100644 --- a/components/EditProfilePage/PhoneVerificationModal.tsx +++ b/components/EditProfilePage/PhoneVerificationModal.tsx @@ -130,6 +130,10 @@ export default function PhoneVerificationModal({ setVerifying(true) try { await confirmationResult.confirm(code.trim()) + + // Force fresh token to ensure context.auth is populated + await auth.currentUser?.getIdToken(true) + if (completePhoneVerification.execute) { await completePhoneVerification.execute() }