auth

Reset password with token (legacy)

Legacy token-based completion. Prefer OTP flow: use POST .../password-reset/confirm with the OTP sent to email for app resets.

POST/api/auth/local/password-reset/{token}

Authentication

Public — No Auth Required

Path Parameters

NameTypeRequiredDescription
tokenstringYesPassword reset token from email link.

Request Body

New password and optional projectId.

json
{
  "password": "NewSecurePass123!",
  "projectId": "685ad30be129932fbb7a1047"
}
{
  "password": "NewSecurePass123!",
  "projectId": "685ad30be129932fbb7a1047"
}

SDK setup

Create a client instance. No authentication is required for this endpoint.

import { MudbaseClient } from "mudbase";

const client = new MudbaseClient();
import { MudbaseClient } from "mudbase";

const client = new MudbaseClient();

Example request

Call this endpoint using the client from SDK setup. Use View HTTP for a raw cURL example.

const result = await client.auth.resetPassword({
  token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c3JfZGVtbyJ9.sig_sample",
  password: "Str0ng_Sample_Pass!w0rd",
  projectId: "proj_DIUTL3QEs3VA"
});
const result = await client.auth.resetPassword({
  token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c3JfZGVtbyJ9.sig_sample",
  password: "Str0ng_Sample_Pass!w0rd",
  projectId: "proj_DIUTL3QEs3VA"
});

Try It Live

Test this endpoint with your own credentials. Your requests will be sent to the live API.

No Request Yet

Send a request to see the full inspector

Responses

200Password reset successful
json
{
  "message": "Password reset successful"
}
{
  "message": "Password reset successful"
}
400Bad request or validation error.
401Authentication required or invalid token.
403Access denied or insufficient permissions.
500Internal server error.

Errors

CodeMeaning
400Bad request or validation error.
401Authentication required or invalid token.
403Access denied or insufficient permissions.
500Internal server error.
Edit this page on GitHub