I'm working on updatePassword method and getting `...
# help
m
I'm working on updatePassword method and getting
failed to fetch
error. Can anyone help me solve this please? I'm sending request as
const { error, data } = await supabase.auth.api.updateUser( access_token, { password : password });
and it returns null data and the error I mentioned. I'm logging out the token and password in the function next to this, so I know they exist.
n
Hello @mikepeiman! 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.
m
Ok weird. I noticed I hadn't used 'preventDefault' on my function and it was annoying, so I added it - and voila, my password update works, and
{ data }
returns the user object. I logged in successfully with the next password.
n
Thread was archived by @mikepeiman. Anyone can send a message to unarchive it.
mikepeiman (2022-04-07)