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({