1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

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
This commit is contained in:
Yuri Yakovlev 2018-05-16 12:09:23 +02:00 committed by Tim Neutkens
parent 254b4b7670
commit 59aa5a4dde

View file

@ -21,7 +21,7 @@ function create (initialState, { getToken }) {
return {
headers: {
...headers,
authorization: token ? `Bearer ${token}` : null
authorization: token ? `Bearer ${token}` : ''
}
}
})