Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/content/8/en/part8d.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down