Reset Password

im on making a reset password with temporary password flow

But dont know where to put this function in order to set user password

const token = new URLSearchParams(window.location.search).get("token");
if (!token) {
// Handle the error
}
const { data, error } = await authClient.resetPassword({
newPassword: "password1234",
token,
});
IMG_0598.png
IMG_0599.png
Was this page helpful?