mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-07 12:27:44 +00:00
docs: pass token in reset-password (#1237)
This commit is contained in:
@@ -29,6 +29,7 @@ export default function ResetPassword() {
|
||||
setError("");
|
||||
const res = await client.resetPassword({
|
||||
newPassword: password,
|
||||
token: new URLSearchParams(window.location.search).get("token")!,
|
||||
});
|
||||
if (res.error) {
|
||||
toast.error(res.error.message);
|
||||
|
||||
Reference in New Issue
Block a user