[PR #2635] [MERGED] fix(docs): add missing comma in listUsers query parameters #21315

Closed
opened 2026-04-15 20:16:40 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2635
Author: @liry24
Created: 5/13/2025
Status: Merged
Merged: 5/13/2025
Merged by: @Kinfe123

Base: mainHead: fix/docs/admin-snippet


📝 Commits (1)

  • f6aa173 fix(docs): add missing comma in listUsers query parameters

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 docs/content/docs/plugins/admin.mdx (+1 -1)

📄 Description

I discovered what appears to be a missing comma in a snippet in the /plugins/admin of the documentation, so I will fix it.

Thank you.

https://www.better-auth.com/docs/plugins/admin

const users = await authClient.admin.listUsers({
    query: {
        searchField: "email",
        searchOperator: "contains",
        searchValue: "@example.com",
        limit: 10,
        offset: 0,
        sortBy: "createdAt",
-       sortDirection: "desc"
+       sortDirection: "desc",
        filterField: "role",
        filterOperator: "eq",
        filterValue: "admin"
    }
});

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/2635 **Author:** [@liry24](https://github.com/liry24) **Created:** 5/13/2025 **Status:** ✅ Merged **Merged:** 5/13/2025 **Merged by:** [@Kinfe123](https://github.com/Kinfe123) **Base:** `main` ← **Head:** `fix/docs/admin-snippet` --- ### 📝 Commits (1) - [`f6aa173`](https://github.com/better-auth/better-auth/commit/f6aa173e256c844db54f45f83a6190881de91a35) fix(docs): add missing comma in listUsers query parameters ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/admin.mdx` (+1 -1) </details> ### 📄 Description I discovered what appears to be a missing comma in a snippet in the `/plugins/admin` of the documentation, so I will fix it. Thank you. https://www.better-auth.com/docs/plugins/admin ```diff const users = await authClient.admin.listUsers({ query: { searchField: "email", searchOperator: "contains", searchValue: "@example.com", limit: 10, offset: 0, sortBy: "createdAt", - sortDirection: "desc" + sortDirection: "desc", filterField: "role", filterOperator: "eq", filterValue: "admin" } }); ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 20:16:40 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#21315