© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
1 reply
LukasV

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();
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
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
nextjs-subscription-payments/useUser.tsx at main · vercel/nextjs-su...
Clone, deploy, and fully customize a SaaS subscription application with Next.js. - nextjs-subscription-payments/useUser.tsx at main · vercel/nextjs-subscription-payments
nextjs-subscription-payments/useUser.tsx at main · vercel/nextjs-su...
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

how to select from supabase
SupabaseSSupabase / help-and-questions
14mo ago
Supabase.green? Is this Supabase?
SupabaseSSupabase / help-and-questions
7mo ago
supabase 2.0 select from view
SupabaseSSupabase / help-and-questions
4y ago
Supabase Select Hackathon
SupabaseSSupabase / help-and-questions
5mo ago