Mutations
resetPasswordOptions
Reset a password with a Better Auth token.
Options factory
import { resetPasswordOptions } from "@better-auth-ui/solid"
import { createMutation } from "@tanstack/solid-query"
const resetPassword = createMutation(() => resetPasswordOptions(authClient))
const token = new URLSearchParams(window.location.search).get("token")
const newPassword = formPasswordValue
if (token) {
resetPassword.mutate({ token, newPassword })
}Params
Prop
Type
Last updated on