> ## 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](https://docs.modelence.com/api-reference/modelence/client/functions/../../../index) / [modelence](https://docs.modelence.com/api-reference/modelence/client/functions/../../index) / [client](https://docs.modelence.com/api-reference/modelence/client/functions/../index) / resetPassword

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

Defined in: [packages/modelence/src/auth/client/index.ts:279](https://github.com/modelence/modelence/blob/main/packages/modelence/src/auth/client/index.ts#L279)

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`>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.