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

docs: update statess docs #899

Merged
merged 3 commits into from
Feb 12, 2019
Merged
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
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