Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #899 from goofiw/patch-1
Browse files Browse the repository at this point in the history
docs: update statess docs
  • Loading branch information
hwillson authored Feb 12, 2019
2 parents 6f9777b + 45bcc26 commit ecb3ea7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/source/stateless.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ import { ApolloLink } from 'apollo-link';

const authLink = new ApolloLink((operation, forward) => {
operation.setContext(({ headers }) => ({ headers: {
authorization: Meteor.userId() // however you get your token
authorization: Meteor.userId(), // however you get your token
...headers
}}));
return forward(operation);
});
Expand Down

0 comments on commit ecb3ea7

Please sign in to comment.