What's the best way to get the userId in prisma/AuthJs?
Is there a better way to do this? Because I should make a request everytime just to get the
userId
. How do you do it? I'd create a state to store it when the user logs in and then use POST
and body
to then get it in the server. Is that the best way to do it?
0 Replies