diff --git a/packages/backend/src/helpers/authentication.js b/packages/backend/src/helpers/authentication.js index 010856ee..42708a0b 100644 --- a/packages/backend/src/helpers/authentication.js +++ b/packages/backend/src/helpers/authentication.js @@ -20,7 +20,8 @@ export const isAuthenticated = async (_parent, _args, req) => { .withGraphFetched({ role: true, permissions: true, - }); + }) + .throwIfNotFound(); return true; } catch (error) {