© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Can I expose `account_id` to the user? - Better Auth
BA
Better Auth
•
5mo ago
•
2 replies
AlexErrant
Can I expose `account_id` to the user?
I
'm using better
-auth
's default id generator
, so I assume there
's no sensitive data being leaked
.
Context
: in my app users may have multiple accounts
. I plan on having client requests include
account_id
account_id
which I
'll then pass to
getAccessToken
getAccessToken
to get the correct account accessToken
https://www.better-auth.com/docs/concepts/oauth#get-access-token
I will
, of course
, also pass the
userId
userId
obtained from the session
.
Recent Announcements
Similar Threads
How can I make the user ID an auto-incrementing integer?
BA
Better Auth / help
16mo ago
Convex Better auth Desclines the v.id("user") and Id<"user">
BA
Better Auth / help
4mo ago
Rename "user" table to "account"
BA
Better Auth / help
11mo ago
Get User by ID
BA
Better Auth / help
13mo ago