Graphql query to check passport/google authentication
问题 I want to implement graphql query to check if I'm logged in or not. First part is similar for what we all can see on passport docs and youtube/github tutorials: I: Introduction(if anybody know what is all about you can skip to problem part): modules/auth.js const GoogleStrategy = require('passport-google-oauth20').Strategy const passport = require('passport'); const User = require('../models/user'); passport.serializeUser((user, done) => { done(null, user.id) }) passport.deserializeUser((id,