© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3w ago•
4 replies
jkwok678

converting anonymous accounts to permanent ones

auth
In the documentation I see that it says -
const { data: updateEmailData, error: updateEmailError } = await supabase.auth.updateUser({
  email: 'valid.email@supabase.io',
})
// verify the user's email by clicking on the email change link
// or entering the 6-digit OTP sent to the email address
// once the user has been verified, update the password
const { data: updatePasswordData, error: updatePasswordError } = await supabase.auth.updateUser({
  password: 'password',
})
const { data: updateEmailData, error: updateEmailError } = await supabase.auth.updateUser({
  email: 'valid.email@supabase.io',
})
// verify the user's email by clicking on the email change link
// or entering the 6-digit OTP sent to the email address
// once the user has been verified, update the password
const { data: updatePasswordData, error: updatePasswordError } = await supabase.auth.updateUser({
  password: 'password',
})

but this looks equally possible. Is this allowed by supabase where you verify both username and password at the same time?
const { data, error: authError } = await supabase.auth.updateUser({
        email: formData.email,
        password: formData.password,
      });
const { data, error: authError } = await supabase.auth.updateUser({
        email: formData.email,
        password: formData.password,
      });
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

Converting anonymous user into permanent user using Google or apple sign in.
SupabaseSSupabase / help-and-questions
13mo ago
Anonymous Sign-in
SupabaseSSupabase / help-and-questions
3y ago
How to link anonymous account to Google?
SupabaseSSupabase / help-and-questions
3mo ago
Best way to implement anonymous access?
SupabaseSSupabase / help-and-questions
3y ago