© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
29 replies
Pursuit of Code

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
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

email otp limit
SupabaseSSupabase / help-and-questions
6mo ago
Email Reliability//OTP alternatives
SupabaseSSupabase / help-and-questions
7mo ago
Login with Email & OTP
SupabaseSSupabase / help-and-questions
7mo ago
error.code is undefined when using supabase.auth.updateUser
SupabaseSSupabase / help-and-questions
14mo ago