Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const client = new ApolloClient({
- uri: clientUrl,
- request: async operation => {
- const token = How_do_i_set_this <-- ???
- console.log('token in request', token)
- operation.setContext({
- headers: {
- authorization: token ? `Bearer ${token}` : ''
- }
- });
- }
- });
- const App = () => (
- <DashAppHolder>
- <ApolloProvider client={client}>
- <Provider store={store}>
- <PublicRoutes history={history} />
- </Provider>
- </ApolloProvider>
- </DashAppHolder>
- );
Add Comment
Please, Sign In to add comment