How am I supposed to work with the getUser() method?

I need to initialize my user state to the value supabase.auth.user(), but that method doesn't exist anymore, and I can't initialize state with an async function inside

If I don't initialize state with the user object then it gets reset every refresh
unknown.png
Was this page helpful?