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'})

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
      })

These functions don't return anything but null and the data don't change on the DB
Was this page helpful?