From 6ef9dd676cb0a6b63e128e9466abdb7706b6574a Mon Sep 17 00:00:00 2001 From: Michael Novotny Date: Wed, 28 Oct 2026 17:42:50 -0500 Subject: [PATCH 1/3] docs(backend): correct the salted password digest order in createUser() JSDoc The Backend API reads `md5_salted` and `sha256_salted` digests as `hash$salt`, so the JSDoc now says that instead of `salt$hash`. Co-Authored-By: Claude Opus 5.5 --- .changeset/fix-salted-password-digest-order.md | 5 +++++ packages/backend/src/api/endpoints/UserApi.ts | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .changeset/fix-salted-password-digest-order.md diff --git a/.changeset/fix-salted-password-digest-order.md b/.changeset/fix-salted-password-digest-order.md new file mode 100644 index 00000000000..1420e590750 --- /dev/null +++ b/.changeset/fix-salted-password-digest-order.md @@ -0,0 +1,5 @@ +--- +'@clerk/backend': patch +--- + +Fix the `md5_salted` and `sha256_salted` entries in the `createUser()` JSDoc to show the `password_digest` format the Backend API expects: `hash$salt`, not `salt$hash`. diff --git a/packages/backend/src/api/endpoints/UserApi.ts b/packages/backend/src/api/endpoints/UserApi.ts index b41d36ec020..54b77f6921e 100644 --- a/packages/backend/src/api/endpoints/UserApi.ts +++ b/packages/backend/src/api/endpoints/UserApi.ts @@ -145,9 +145,9 @@ export type UserPasswordHashingParams = { * *
  • [`md5_salted` (insecure)](https://en.wikipedia.org/wiki/MD5)
  • * *
  • [`pbkdf2_sha1`](https://en.wikipedia.org/wiki/PBKDF2)
  • * *
  • [`sha256_salted` (insecure)](https://en.wikipedia.org/wiki/SHA-2)
  • * *
  • [`argon2`](https://argon2.online/) variants: `argon2i` and `argon2id`.
  • *