Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. const client = new ApolloClient({
  2. uri: 'some url',
  3. request: async operation => {
  4. const token = 'MvHE4SXPDa17yzh6Shswhsvwhswdwvd';
  5. operation.setContext({
  6. headers: {
  7. authorization: token
  8. }
  9. });
  10. }
  11. })
  12.  
  13. const client = new ApolloClient({
  14. uri: 'some url,
  15. headers: {
  16. authorization: token
  17. }
  18. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement