Skip to main content
API Reference / modelence / client / resetPassword
resetPassword(options): Promise<void>
Defined in: packages/modelence/src/auth/client/index.ts:182 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

ParameterTypeDescription
options{ password: string; token?: string; }-
options.passwordstringThe new password.
options.token?stringReset token (optional; read from the httpOnly cookie when omitted).

Returns

Promise<void>