function api Function(req, res) { // Assuming the access token was sent as a header "X-Supabase-Auth" const { access_token } = req.get('X-Supabase-Auth') // You can now use it within a Supabase Client const supabase = create Client("https://xyzcompany.supabase.co", "publishable-or-anon-key") const { user, error } = supabase.auth.set Auth(access_token) // This client will now send requests as this user const { data }…