I have this weird issue. I can't change mail for a...
# help
u
I have this weird issue. I can't change mail for anyone despite it working the other day I even simplified my function to just
Copy code
js
    const udpateEmail = async () => {
        const { user, error } = await supabase.auth.update({ email: 'new@email.com' });
        console.log(user, error);
    };
And what i get back is the usual user object and no errors at all. But despite that i just won't update on the DB.
n
Hello @4Lajf! This thread has been automatically created from your message in #843999948717555735 a ``few seconds ago``. Pinging @User so that they see this as well! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ... menu) and select Leave Thread to unsubscribe from future updates. Want to change the title? Use the
/title
command! We have solved your problem? Click the button below to archive it.
f
@User what if u try to update other fields like
Copy code
js
const { user, error } = await supabase.auth.update({ 
  data: { hello: 'world' } 
})
`
n
4Lajf (2022-04-06)
u
That works. I can update password too
s
@User do you have email confirmation turned on?