Replies: 1 comment 4 replies
-
Without knowing much about your specific usecase, not sure why you would need to put it there. Not all state is global state. In case you want to optimize, check out the Provider https://next-auth.js.org/getting-started/client#provider |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone. I really excited about next-auth, it's really easy to start developing secured apps. But i have a small problem in existed app with Mobx store - how to obtain session object without SSR in store?
What are you trying to do
But this way is bad, because produce duplicated call to /api/auth/session. First call produced from next-auth, next call from constructor in MyStore.
Where is a right place to observe existed /api/auth/session request for update my Mobx store ?
Feedback
Documentation refers to searching through online documentation, code comments and issue history. The example project refers to next-auth-example.
Beta Was this translation helpful? Give feedback.
All reactions