diff --git a/docs/content/docs/(documentation)/modules/auth.mdx b/docs/content/docs/(documentation)/modules/auth.mdx index 069c7bb..b7cf097 100644 --- a/docs/content/docs/(documentation)/modules/auth.mdx +++ b/docs/content/docs/(documentation)/modules/auth.mdx @@ -30,6 +30,21 @@ With a focus on flexibility and ease of integration, bknd's authentication syste --- +## SDK Method: `app.module.auth.changePassword(user.id, password)` + +### `auth.changePassword([userId], [password])` + +To change a user's password, use the `changePassword` method: + +```ts +await app.module.auth.changePassword(user.id, password); +``` + +This method updates the password for the specified user. +- `userId`: The ID of the user whose password should be changed. +- `password`: The new password value. + + ## Securing Your Admin Portal