Skip to content

Commit

Permalink
Safer approach to adding Authentication header (apollographql#2876)
Browse files Browse the repository at this point in the history
* safer approach to adding Authentication header

* switch to empty string
  • Loading branch information
mattbretl authored and James Baxley committed Jan 29, 2018
1 parent f295db8 commit 7a77bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/recipes/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const authLink = setContext((_, { headers }) => {
return {
headers: {
...headers,
authorization: token ? `Bearer ${token}` : null,
authorization: token ? `Bearer ${token}` : "",
}
}
});
Expand Down

0 comments on commit 7a77bf1

Please sign in to comment.