Manuel Coffin
03/21/2022, 3:34 PMjs
const { error, data } = await supabase.auth.api.updateUser(token, { password: password.trim() })
the token being the one in the url.
This works, but when I try to update the password for a logged in user, using the exact same method supabase.auth.api.updateUser
, it fails to find the user;
The difference is the token is the session.access_token
So I've tried to use the supabase.auth.api.updateUserById
method, but it gives me another error: { message: 'User not allowed', status: 401 }
Any ideas? I feel the docs about this is not very clear, and probably outdated as it doesn't show all the available methods :/Needle
03/21/2022, 3:34 PM/title
command!
We have solved your problem?
Click the button below to archive it.Manuel Coffin
03/21/2022, 11:20 PMNeedle
03/21/2022, 11:20 PMNeedle
03/21/2022, 11:20 PM