Manage NextJS apollo session. #1193
-
Manage NextJS apollo session. Hello All!
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The basic problem is that the session token is not being correctly communicated. If you are using the "cookie" method (which is the default), then you might be running into sameSite cookie issues (if so, you should see a warning in your browser console). If you are using the "bearer" method, you need to do some work on your client side to handle the bearer token and include it in all requests once you receive it. |
Beta Was this translation helpful? Give feedback.
-
This is what i did to make it work.
|
Beta Was this translation helpful? Give feedback.
The basic problem is that the session token is not being correctly communicated. If you are using the "cookie" method (which is the default), then you might be running into sameSite cookie issues (if so, you should see a warning in your browser console).
If you are using the "bearer" method, you need to do some work on your client side to handle the bearer token and include it in all requests once you receive it.