How d owe authenticate for subscriptions? do we pa...
# prisma-whats-new
p
How d owe authenticate for subscriptions? do we pass in AuthToken like apollo says? http://dev.apollodata.com/react/subscriptions.html
a
I always use:
Copy code
Authorization : `Bearer ${token}`
p
@agartha sorry I only saw this now. I use that same method for my queries. I just dont know where to put it for subscriptions. Do I just put it in the initial networkInterface whch will then also run for subscriptions?
But instead of
authToken: ...
I use
Authorization: ...
p
ah awesome thanks
😎 1