SupabaseS
Supabase4y ago
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)

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
Was this page helpful?