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:
parent
254b4b7670
commit
59aa5a4dde
|
@ -21,7 +21,7 @@ function create (initialState, { getToken }) {
|
|||
return {
|
||||
headers: {
|
||||
...headers,
|
||||
authorization: token ? `Bearer ${token}` : null
|
||||
authorization: token ? `Bearer ${token}` : ''
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue