Replies: 1 comment
-
Short answer: I stopped using |
Beta Was this translation helpful? Give feedback.
0 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.
-
Next Auth is the default solution to make it easy to setup auth/session with Next.js
This library or not doesn't change the fact that relay-nextjs (as noted in #65) is currently documented to this kind of "classic" usage: you get a session before setup anything as your session token/jwt/whatever can affect the entire relay setup (since your call at the end will need to rely and on transmitted value for proper auth).
I have used a "hack" for server auth (since I can access from
createServerEnvironment
to my session), but in case of client side, currently there is no way to access a hook like useSession() nextauth can offer.Am I missing something to setup this properly ?
Beta Was this translation helpful? Give feedback.
All reactions