From cc1e1976f764ea6cbedecba86a067b57978943d4 Mon Sep 17 00:00:00 2001 From: Jonas Perusquia Morales Date: Mon, 23 Feb 2026 13:03:37 -0600 Subject: [PATCH] chore: Document error cases for password update method --- docs/content/docs/(documentation)/modules/auth.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/content/docs/(documentation)/modules/auth.mdx b/docs/content/docs/(documentation)/modules/auth.mdx index 2bdd3e3..72e082a 100644 --- a/docs/content/docs/(documentation)/modules/auth.mdx +++ b/docs/content/docs/(documentation)/modules/auth.mdx @@ -44,6 +44,10 @@ 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. +This method throws an error if: +- The user with the given `userId` is not found. +- The user's authentication strategy is not `"password"` (e.g. the user registered via an OAuth provider). + ## Securing Your Admin Portal