Join Slack
Powered by
How d owe authenticate for subscriptions? do we pa...
# prisma-whats-new
p
Pieter
09/10/2017, 11:58 AM
How d owe authenticate for subscriptions? do we pass in AuthToken like apollo says?
http://dev.apollodata.com/react/subscriptions.html
a
agartha
09/10/2017, 11:12 PM
I always use:
Copy code
Authorization : `Bearer ${token}`
p
Pieter
09/13/2017, 1:09 PM
@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?
a
agartha
09/13/2017, 1:25 PM
http://dev.apollodata.com/react/subscriptions.html#authentication
agartha
09/13/2017, 1:25 PM
But instead of
authToken: ...
I use
Authorization: ...
p
Pieter
09/18/2017, 6:41 PM
ah awesome thanks
😎 1
Open in Slack
Previous
Next