diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-05-15 22:15:36 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-05-15 22:15:36 -0400 |
| commit | 3f9b14e3c1d7f47d9b3e48b94b3b5bf2c722205e (patch) | |
| tree | 63373ce8c75e51305b7899af6c53903ef6c4f179 /backend/src/resolvers/Query.js | |
| parent | ae1a94b08f5aba0c16c6536e388b4dd4a53120fd (diff) | |
migrate to cookies for jwt
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 } |
