Skip to content

Commit 1dcb9f3

Browse files
authored
Fix @accounts/apollo-link documentation (#769)
1 parent e540567 commit 1dcb9f3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

website/docs/transports/graphql.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ const accountsGraphQL = new GraphQLClient({
298298

299299
## Using with Apollo Link
300300

301-
In order to send the accounts token on every request sent to your GraphQL server, apollo requires you to implment an apollo-link. This link is usually quite generic when using accounts-js so we've implmeneted the apollo-link you need and offer it as a utility package.
301+
In order to send the accounts token on every request sent to your GraphQL server, apollo requires you to implment an apollo-link. This link is usually quite generic when using accounts-js so we've implemented the apollo-link you need and offer it as a utility package.
302302

303303
### Install @accounts/apollo-link
304304

@@ -312,7 +312,8 @@ yarn add @accounts/apollo-link
312312
import { accountsLink } from '@accounts/apollo-link';
313313

314314
const accountsClient = new AccountsClient( ... );
315-
const authLink = accountsLink(accountsClient);
315+
316+
const authLink = accountsLink(() => accountsClient);
316317

317318
export const apolloClient = new ApolloClient({
318319
link: ApolloLink.from([authLink, httpLink]),

0 commit comments

Comments
 (0)