diff options
Diffstat (limited to 'backend/src/resolvers/Query.js')
| -rw-r--r-- | backend/src/resolvers/Query.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/backend/src/resolvers/Query.js b/backend/src/resolvers/Query.js index 276f7fa..b1e0c5b 100644 --- a/backend/src/resolvers/Query.js +++ b/backend/src/resolvers/Query.js @@ -36,8 +36,7 @@ const Query = { }, me(parent, args, ctx, info) { - const Authorization = ctx.request.get('Authorization'); - if (!Authorization || Authorization === 'null') { + if (!ctx.request.userId) { return null; // don't error out, just return nothing } |
