From 59aa5a4dde548e1b06423301977f148a70f3b2d9 Mon Sep 17 00:00:00 2001 From: Yuri Yakovlev Date: Wed, 16 May 2018 12:09:23 +0200 Subject: [PATCH] Return empty string instead of null in the Authorization (#4389) I was unable to make right check of `authorization` in the header on GraphQL side because now it returns `null` as string instead of empty string --- examples/with-apollo-auth/lib/initApollo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/with-apollo-auth/lib/initApollo.js b/examples/with-apollo-auth/lib/initApollo.js index 5dec4e7b..7212398c 100644 --- a/examples/with-apollo-auth/lib/initApollo.js +++ b/examples/with-apollo-auth/lib/initApollo.js @@ -21,7 +21,7 @@ function create (initialState, { getToken }) { return { headers: { ...headers, - authorization: token ? `Bearer ${token}` : null + authorization: token ? `Bearer ${token}` : '' } } })