From 12b850f18129143e8eaac6755810b52562a3e666 Mon Sep 17 00:00:00 2001 From: syJSdev Date: Sat, 16 May 2020 06:47:19 +0800 Subject: [PATCH] fixed issue #9 --- src/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index 297902c..8afe6b8 100644 --- a/src/index.js +++ b/src/index.js @@ -28,11 +28,12 @@ const getMe = async req => { try { return await jwt.verify(token, process.env.SECRET); } catch (e) { - throw new AuthenticationError( - 'Your session expired. Sign in again.', - ); + // throw new AuthenticationError( + // 'Your session expired. Sign in again.', + // ); } } + return null; }; const server = new ApolloServer({