[GH-ISSUE #1112] feature request: api-key plugin auth #8600

Closed
opened 2026-04-13 03:43:01 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @reslear on GitHub (Jan 3, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/1112

Is this suited for github?

  • Yes, this is suited for github

image

image

Api key functionality - (middleware, store, list ...), use database collection like tokens for storing, use admin plugin for management, add routes for CRUD operations.

Describe the solution you'd like

Example: https://github.com/hydra-newmedia/passport-headerapikey
or https://docs.strapi.io/dev-docs/configurations/api-tokens

it would also be cool to be able to have each user create a key for themselves

Describe alternatives you've considered

maybe use jwts for this solution

Additional context

No response

Originally created by @reslear on GitHub (Jan 3, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/1112 ### Is this suited for github? - [X] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. ![image](https://github.com/user-attachments/assets/85a1ab58-e816-418b-b9e7-8b90730bd461) ![image](https://github.com/user-attachments/assets/fd0af524-2273-49fd-a940-a8e983142c09) Api key functionality - (middleware, store, list ...), use database collection like `tokens` for storing, use admin plugin for management, add routes for CRUD operations. ### Describe the solution you'd like Example: https://github.com/hydra-newmedia/passport-headerapikey or https://docs.strapi.io/dev-docs/configurations/api-tokens it would also be cool to be able to have each user create a key for themselves ### Describe alternatives you've considered maybe use jwts for this solution ### Additional context _No response_
GiteaMirror added the locked label 2026-04-13 03:43:01 -05:00
Author
Owner

@epulla commented on GitHub (Jan 16, 2025):

I'd love to have this features ❤ having a one-time token/key for public APIs. Is there any plan for this feature request soon?

<!-- gh-comment-id:2596342632 --> @epulla commented on GitHub (Jan 16, 2025): I'd love to have this features ❤ having a one-time token/key for public APIs. Is there any plan for this feature request soon?
Author
Owner

@ping-maxwell commented on GitHub (Feb 10, 2025):

https://github.com/better-auth/better-auth/pull/1380

<!-- gh-comment-id:2646832113 --> @ping-maxwell commented on GitHub (Feb 10, 2025): https://github.com/better-auth/better-auth/pull/1380
Author
Owner

@reslear commented on GitHub (Mar 15, 2025):

https://github.com/better-auth/better-auth/pull/1515

<!-- gh-comment-id:2726537645 --> @reslear commented on GitHub (Mar 15, 2025): https://github.com/better-auth/better-auth/pull/1515
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#8600