[GH-ISSUE #3724] Docs Update: API Key Schema userId description #27022

Closed
opened 2026-04-17 17:48:50 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @rebasecase on GitHub (Jul 31, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/3724

Is this suited for github?

  • Yes, this is suited for github

https://www.better-auth.com/docs/plugins/api-key#schema

userId	string	
The ID of the user who created the API key.

I think this should be more accurately described as "The ID of the user associated with the session when this API key is used." or something?

Describe the solution you'd like

Describe alternatives you've considered

Additional context

No response

Originally created by @rebasecase on GitHub (Jul 31, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/3724 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. https://www.better-auth.com/docs/plugins/api-key#schema ``` userId string The ID of the user who created the API key. ``` I think this should be more accurately described as "The ID of the user associated with the session when this API key is used." or something? ### Describe the solution you'd like - ### Describe alternatives you've considered - ### Additional context _No response_
GiteaMirror added the locked label 2026-04-17 17:48:50 -05:00
Author
Owner

@dagmawibabi commented on GitHub (Aug 5, 2025):

made a pr to fix this, thanks https://github.com/better-auth/better-auth/pull/3798

<!-- gh-comment-id:3153111600 --> @dagmawibabi commented on GitHub (Aug 5, 2025): made a pr to fix this, thanks https://github.com/better-auth/better-auth/pull/3798
Author
Owner

@Kinfe123 commented on GitHub (Aug 7, 2025):

closing in favor of #3798

<!-- gh-comment-id:3163023928 --> @Kinfe123 commented on GitHub (Aug 7, 2025): closing in favor of #3798
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#27022