Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const client = new ApolloClient({
- uri: 'some url',
- request: async operation => {
- const token = 'MvHE4SXPDa17yzh6Shswhsvwhswdwvd';
- operation.setContext({
- headers: {
- authorization: token
- }
- });
- }
- })
- const client = new ApolloClient({
- uri: 'some url,
- headers: {
- authorization: token
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement