fix: Allow external errors for graphql shield
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
c935f3f691
commit
96cca96bff
@@ -20,7 +20,8 @@ const isAuthenticated = rule()(async (_parent, _args, req) => {
|
||||
}
|
||||
});
|
||||
|
||||
const authentication = shield({
|
||||
const authentication = shield(
|
||||
{
|
||||
Query: {
|
||||
'*': isAuthenticated,
|
||||
},
|
||||
@@ -28,6 +29,10 @@ const authentication = shield({
|
||||
'*': isAuthenticated,
|
||||
login: allow,
|
||||
},
|
||||
});
|
||||
},
|
||||
{
|
||||
allowExternalErrors: true,
|
||||
}
|
||||
);
|
||||
|
||||
export default authentication;
|
||||
|
Reference in New Issue
Block a user