From 3f9b14e3c1d7f47d9b3e48b94b3b5bf2c722205e Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Tue, 15 May 2018 22:15:36 -0400 Subject: migrate to cookies for jwt --- backend/src/resolvers/Query.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'backend/src/resolvers/Query.js') 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 } -- cgit v1.3