You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use Next.js and before initializing RoomProvider, set a cookie with userId which is then read from the req object in auth.js route and used to authenticate the user and prepareSession.
Is there a better way to do this than setting a userId cookie?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We use Next.js and before initializing
RoomProvider
, set a cookie with userId which is then read from the req object in auth.js route and used to authenticate the user andprepareSession
.Is there a better way to do this than setting a userId cookie?
Beta Was this translation helpful? Give feedback.
All reactions