Hi folks! I am quite new at using supabase. I am w...
# help
a
Hi folks! I am quite new at using supabase. I am wondering how I should access my users email on the server-side? I created a
profiles
table with data such as the firstname & lastname. But then I would like to retrieve a user email from its profiles.id. Is it possible. How would you do? Thanks a lot!
n
Hello @Amatewasu! This thread has been automatically created from your message in #843999948717555735 a ``few seconds ago``. Pinging @User so that they see this as well! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ... menu) and select Leave Thread to unsubscribe from future updates. Want to change the title? Use the
/title
command! We have solved your problem? Click the button below to archive it.
s
You can query the
auth
schema by setting the schema when instantiating the supabase library
Copy code
js
import { createClient } from '@supabase/supabase-js';
const supabase = createClient(supabaseUrl, supabaseServerKey, { schema: 'auth' });
n
Amatewasu (2022-03-13)
a
Hi @User, thanks a lot for your answer! I guess I have to create such a client only on the server-side? 🙂
s
Yes that's correct
a
Thank you!