diff --git a/src/content/8/en/part8d.md b/src/content/8/en/part8d.md index 2da5bf1936..bfe7d246d9 100644 --- a/src/content/8/en/part8d.md +++ b/src/content/8/en/part8d.md @@ -166,10 +166,10 @@ After the backend changes, creating new persons requires that a valid user token ```js import { ApolloClient, InMemoryCache, createHttpLink } from '@apollo/client' // highlight-line import { ApolloProvider } from '@apollo/client/react' -import { setContext } from '@apollo/client/link/context' // highlight-line +import { SetContextLink } from '@apollo/client/link/context' // highlight-line // highlight-start -const authLink = setContext((_, { headers }) => { +const authLink = new SetContextLink(({ headers }) => { const token = localStorage.getItem('phonenumbers-user-token') return { headers: {