Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Can I expose `account_id` to the user? - Better Auth
BA
Better Auth
•
3mo 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
.
Better Auth
Join
9,988
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How can I make the user ID an auto-incrementing integer?
BA
Better Auth / help
14mo ago
Convex Better auth Desclines the v.id("user") and Id<"user">
BA
Better Auth / help
2mo ago
Rename "user" table to "account"
BA
Better Auth / help
9mo ago
Get User by ID
BA
Better Auth / help
12mo ago