Hello, How to pass token at apollo client?
# prisma-whats-new
r
Hello, How to pass token at apollo client?
n
Hey 👋
With the current v1 of React Apollo, I use the
networkInterface
to inject my rootToken/PAT as a header. https://github.com/notrab/create-react-app-apollo/blob/master/src/index.js#L15
n
@notrab you should never use a root token client side, is that what you;re doing here?
n
I think from localStorage I was previously doing so, can’t remember when I made the boilerplate what I extracted it from