authState is always null even though I have a token #1503
-
I have been trying to use the authExchange, but I get a jwt back from server, and it never is in localStorage, and authState is never anything but null. I have gone through the docs on this, but nothing works for me. I am using Vue3 in vite, and apollo server with express-jwt, and jsonwebtoken. I checked the headers and there is never an auth header, I thought that this was working before. Ok, changed a few things, authState contains the token, but fetch fails with error: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
That error would imply that you're not using a |
Beta Was this translation helpful? Give feedback.
That error would imply that you're not using a
query-string
which means you're just sending an empty graphql operation 😅 could you reproduce this?