getUserById( 1 ), error id must be uuid
The documentation states:
Fetch the user object using the access_token jwt.
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
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
Get user by id.