Supabase retrieve user

32 Views Asked by At

I am logged in Supabase, when I click button on my webpage it shows me details of the account, that is signed in, so it works. However I want show user email in html? How do I do that without calling any function? Just showing user.email in a

tag on a webpage? In supabase doc there is

const { data: { user } } = await supabase.auth.getUser()

So I need to put it in async function, no? Thank you :)

everything I could

const { data: { user } } = await supabase.auth.getUser()

So I

0

There are 0 best solutions below