Supabase user object in state.
Unanswered
Sloth bear posted this in #help-forum
Sloth bearOP
Hey Guys,
Could someone give me an example work flow of how to work with the user object and store it in state?
I would use getUser() from the supabase api, and where would I store that? Could I use the context api? That I can reference whenever I need the user data somewhere in the app, like the header. Once my user is logged in, am I right in thinking that session will remain open until the access token runs out?
Could someone give me an example work flow of how to work with the user object and store it in state?
I would use getUser() from the supabase api, and where would I store that? Could I use the context api? That I can reference whenever I need the user data somewhere in the app, like the header. Once my user is logged in, am I right in thinking that session will remain open until the access token runs out?