© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
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 banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

UUID error?
SupabaseSSupabase / help-and-questions
4mo ago
ERROR: must be owner of table objects
SupabaseSSupabase / help-and-questions
8mo ago
ERROR: must be owner of table "name"
SupabaseSSupabase / help-and-questions
3y ago
Insert rows with user id (uuid)
SupabaseSSupabase / help-and-questions
4y ago