We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe99f51 commit 708146bCopy full SHA for 708146b
graphql/resolvers.js
@@ -181,7 +181,6 @@ const resolvers = {
181
},
182
183
oAuth: async (_parent, { userInput }) => {
184
- console.log("coming here");
185
const { name, email } = userInput;
186
let user = await User.findOne({ email });
187
index.mjs
@@ -36,7 +36,6 @@ const server = new ApolloServer({
36
if (authorization) {
37
try {
38
const decoded = jwt.verify(authorization.replace("Bearer ", ""), process.env.JWT_SECRET);
39
- console.log("decoded: ", decoded);
40
const user = await User.findById(decoded.sub).populate("beacons");
41
return { user };
42
} catch (err) {
0 commit comments