Management API / Client #1292

Closed
opened 2026-03-13 08:31:34 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @ardyfeb on GitHub (Jun 2, 2025).

Is this suited for github?

  • Yes, this is suited for github

Management api similiar to https://auth0.com/docs/api/management/v2.

Allow us to do management task list users, update user, delete user, etc.

Currently admin plugin cover this usage, but requiring token that can be retrieved from login flow.

Describe the solution you'd like

  • Expose management api auth.api.* as rest api.
  • Connect from remote server using api key
  • On better auth side, provide hooks that verify api key verifyManagementApi: key => vault.get(key) so we can have logic to verify incoming request api key or using external key vault

Describe alternatives you've considered

createManagementClient() similiar to createAuthClient()

Additional context

My use case is make better auth running as standalone service and need to manage users from external service

Originally created by @ardyfeb on GitHub (Jun 2, 2025). ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. Management api similiar to https://auth0.com/docs/api/management/v2. Allow us to do management task `list users`, `update user`, `delete user`, etc. Currently admin plugin cover this usage, but requiring token that can be retrieved from login flow. ### Describe the solution you'd like - Expose management api `auth.api.*` as rest api. - Connect from remote server using api key - On better auth side, provide hooks that verify api key `verifyManagementApi: key => vault.get(key)` so we can have logic to verify incoming request api key or using external key vault ### Describe alternatives you've considered `createManagementClient()` similiar to `createAuthClient()` ### Additional context My use case is make better auth running as standalone service and need to manage users from external service
Author
Owner

@Kinfe123 commented on GitHub (Jun 2, 2025):

We're working on a plugin for the infrastructure side that we'll be releasing soon on better-auth.build. It will be part of that, and we'll provide you with an API key for it.

@Kinfe123 commented on GitHub (Jun 2, 2025): We're working on a plugin for the infrastructure side that we'll be releasing soon on [better-auth.build](https://better-auth.build/). It will be part of that, and we'll provide you with an API key for it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#1292