is there a way to validate/authenticate a password reauthentication nonce before calling updateUser?
Hey,
I’m trying to create a secure change password page in my iOS app (Swift). Looking at the docs, it seems like the best way to change the user’s password is to call supabase.auth.reauthenticate() to have a nonce sent to the user.
Then use the nonce to update the password:
try await supabase.auth.update(
user: UserAttributes(
password: "new password",
nonce: "123456"
)
)
I want to have the user enter and verify the nonce in a view before presenting another view to update their password. Is this possible? The docs only mention passing the nonce to supabase.auth.update(user: UserAttributes)
I see supabase.auth.verifyOTP methods, but these look to be for logging in, and i’m not sure if the nonce is technically an OTP
thanks!
I’m trying to create a secure change password page in my iOS app (Swift). Looking at the docs, it seems like the best way to change the user’s password is to call supabase.auth.reauthenticate() to have a nonce sent to the user.
Then use the nonce to update the password:
try await supabase.auth.update(
user: UserAttributes(
password: "new password",
nonce: "123456"
)
)
I want to have the user enter and verify the nonce in a view before presenting another view to update their password. Is this possible? The docs only mention passing the nonce to supabase.auth.update(user: UserAttributes)
I see supabase.auth.verifyOTP methods, but these look to be for logging in, and i’m not sure if the nonce is technically an OTP
thanks!