Skip to content

Commit d3f71e2

Browse files
committed
authentication setup
1 parent aec77b0 commit d3f71e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@ const middlewareAuthLink = new ApolloLink((operation, forward) => {
2828
return forward(operation)
2929
})
3030

31+
const httpLinkWithAuthToken = middlewareAuthLink.concat(httpLink)
32+
3133
const client = new ApolloClient({
3234
link: httpLinkWithAuthToken,
3335
cache: new InMemoryCache()
3436
})
3537

36-
const httpLinkWithAuthToken = middlewareAuthLink.concat(httpLink)
38+
3739

3840
// 4
3941
ReactDOM.render(

0 commit comments

Comments
 (0)