updateUser email when using SSR OTP.

SvelteKit with Superforms and ZOD.
  • Using signInWithOtp on server with callback.
I created an account page where I am trying to allow the user to update their email. However I am encounter an issue where everytime I submit I get the error "invalid email address." ( This is the error validation I have set with the zod schema) I believe this has to do with superForms taking in the event and the schema and returning that error because the event does not contain the new email. Not sure what is happening here with the form not POSTing the new email address?

Any guidance would be appreciated I have been stuck on this particular issue for too long e_e
Was this page helpful?