Using, Next Auth, how can I get the user id inside of a client component?
Unanswered
Basenji posted this in #help-forum
BasenjiOP
I have a separate backend and I've set up a credentials implementation of next auth in my application and everything is working in terms of signing in and logging out, but I'm also using
How can I get the user id inside of a client component? Perhaps I need to set the context of the application on an auth callback with the user data so that it's available for me?
swr and I have a couple of API functions where I need to pass the user id to get some additional data associated with the user, so my question is:How can I get the user id inside of a client component? Perhaps I need to set the context of the application on an auth callback with the user data so that it's available for me?