adding fallback value for authorisation

This commit is contained in:
Nikola Bjelo committed 2018-10-11 16:47:34 +02:00
1 parent cf01fe62af
commit e643b4dc8d
1 file changed
+1 -1
+1 -1
View File
@@ -23,7 +23,7 @@ export const createRemoteSchema = async (uri) => {
const link = setContext((request, previousContext) => (
{
headers: {
authorization: previousContext.graphqlContext.headers.authorization
authorization: previousContext.graphqlContext.headers.authorization || ''
}
}
)).concat(http)