diff --git a/packages/backend/src/helpers/authentication.ts b/packages/backend/src/helpers/authentication.ts index d058b379..3f5b9da0 100644 --- a/packages/backend/src/helpers/authentication.ts +++ b/packages/backend/src/helpers/authentication.ts @@ -20,14 +20,19 @@ const isAuthenticated = rule()(async (_parent, _args, req) => { } }); -const authentication = shield({ - Query: { - '*': isAuthenticated, +const authentication = shield( + { + Query: { + '*': isAuthenticated, + }, + Mutation: { + '*': isAuthenticated, + login: allow, + }, }, - Mutation: { - '*': isAuthenticated, - login: allow, - }, -}); + { + allowExternalErrors: true, + } +); export default authentication;