© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
S
Supabase
•
4y ago
•
25 replies
Nin
getUserById( 1 ), error id must be uuid
The documentation states
:
Fetch the user object using the access
_token jwt
.
const { data, error } = await supabase.auth.admin.getUserById(1)
const { data, error } = await supabase.auth.admin.getUserById(1)
It already seemed silly to me but
.
. how can we extract the uuid from the token with getServerSideProps
(cookie
)
?
https://supabase.com/docs/reference/javascript/next/auth-admin-getuserbyid#fetch-the-user-object-using-the-access_token-jwt
getUserById() | Supabase
Get user by id
.
Supabase
Join
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
UUID error?
S
Supabase / help-and-questions
4mo ago
ERROR: must be owner of table objects
S
Supabase / help-and-questions
8mo ago
ERROR: must be owner of table "name"
S
Supabase / help-and-questions
3y ago
Insert rows with user id (uuid)
S
Supabase / help-and-questions
4y ago