> ## Documentation Index
> Fetch the complete documentation index at: https://docs.modelence.com/llms.txt
> Use this file to discover all available pages before exploring further.

# resetPassword

[API Reference](/api-reference/modelence/client/functions/../../../index) / [modelence](/api-reference/modelence/client/functions/../../index) / [client](/api-reference/modelence/client/functions/../index) / resetPassword

> **resetPassword**(`options`): `Promise`\<`void`>

Defined in: [packages/modelence/src/auth/client/index.ts:182](https://github.com/modelence/modelence/blob/f614ecc6811cdda9670d612872c8ff49a49c5e28/packages/modelence/src/auth/client/index.ts#L182)

Reset password.

The token is normally exchanged server-side via an httpOnly cookie, so the
client only submits the new password. Pass `token` only for legacy flows
that still carry it client-side (deprecated).

## Parameters

| Parameter          | Type                                           | Description                                                         |
| ------------------ | ---------------------------------------------- | ------------------------------------------------------------------- |
| `options`          | \{ `password`: `string`; `token?`: `string`; } | -                                                                   |
| `options.password` | `string`                                       | The new password.                                                   |
| `options.token?`   | `string`                                       | Reset token (optional; read from the httpOnly cookie when omitted). |

## Returns

`Promise`\<`void`>
