© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
28 replies
MDobs

updating user returning null

We are having issues updating user data and the actions returning null in both the data and the error

From an edge function

const { data, error } = await supabase.auth.updateUser({email: 'new@email.com'})
const { data, error } = await supabase.auth.updateUser({email: 'new@email.com'})


From browser
const { dataSignIn, errorSignIn } = await supabase.auth.signInWithPassword({
        email: userObject.email,
        password: userObject.name,
      })

      const { dataSession, errorSession } = await supabase.auth.getSession()

      const { user, errorUpdateUser } = await supabase.auth.updateUser({
        email: email,
        password: password
      })
const { dataSignIn, errorSignIn } = await supabase.auth.signInWithPassword({
        email: userObject.email,
        password: userObject.name,
      })

      const { dataSession, errorSession } = await supabase.auth.getSession()

      const { user, errorUpdateUser } = await supabase.auth.updateUser({
        email: email,
        password: password
      })

These functions don't return anything but null and the data don't change on the DB
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

getClaims returning null
SupabaseSSupabase / help-and-questions
4mo ago
useUser hook returning null
SupabaseSSupabase / help-and-questions
4y ago
Supabase query data returning null
SupabaseSSupabase / help-and-questions
4mo ago
Updating user table
SupabaseSSupabase / help-and-questions
4y ago