I am trying to use withAuthUserTokenSSR but AuthUser is null #342
-
Some Quick context. The below code is from the README.
I have modified the server side props to the follow:
Although in the README it says that AuthUser should be available when using withAuthUserTokenSSR, it is null for me. I am using Is this example from the README not available to 1.0.0-canary.2 yet? This is similar to #119 I think, but it looks like #109 solved it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I figured it out... had secure set to true in development... whoops! |
Beta Was this translation helpful? Give feedback.
I figured it out... had secure set to true in development... whoops!
set it to:
process.env.NODE_ENV === "production"
to avoid this in the future