Docs Update: API Key Schema userId description #1613

Closed
opened 2026-03-13 08:51:33 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @rebasecase on GitHub (Jul 31, 2025).

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). ### 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 documentation label 2026-03-13 08:51:33 -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

@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

@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#1613