Is it possible to update a user's password by just...
# help
f
Is it possible to update a user's password by just using the
supabase.auth.update()
method? Or is the only available method
supabase.auth.api.resetPasswordForEmail()
? I'd like to allow a user to update their password directly from their Profile page.
m
You might be able to create a stored procedure to perform the change...
f
that's an interesting idea. If I'm unable to run a regular
.update()
, I may give this a shot. Thanks!
s
Just make sure you are using the correct hashing else the user could be left not being able to log in
f
Yea good call, I suppose a stored procedure wouldn't hash a supplied password. Honestly, running a
.update()
probably wouldn't either. I may end up doing something like a "click this button to send a password reset email", which is kinda hacky but would ensure a better process in the backend
s
Yes thats the option I would go with, also I don't think
.update
can modify the password column
f
Ok makes sense. Thanks for the input!