is this correct supabase call - supabase.from('users').select('*').single() ?

I am looking at supabase stripe starter template code and I'm trying to figure is this correct call?

https://github.com/vercel/nextjs-subscription-payments/blob/main/utils/useUser.tsx
const getUserDetails = () => supabase.from('users').select('*').single();

This supposed to retrieve currently logged in users public row in database, but I don't see uid being passed anywhere, it literally reads like this:

get me first user in users table instead of get me single user row that matches this uid

is this a mistake or actually correct call somehow?
GitHub
Clone, deploy, and fully customize a SaaS subscription application with Next.js. - nextjs-subscription-payments/useUser.tsx at main · vercel/nextjs-subscription-payments
Was this page helpful?