Nodejs third-party github login information cannot be written to session

github.js (used for github third-party login)

  Middleware check.js code stamp here  


solved, because the github login is redirected in http mode after successful login, so express-session needs to set secure: false

app.use(session({
    secret: 'Stefanie Sun',
    store: sessionStore,
    resave: true, //  session
    saveUninitialized: true,  // 
    cookie: { 
        maxAge: 3 * 3600 * 1000,  // 
        secure: false // http  secure  false
  }, 
    rolling: true
}))

blame me for not reading the document carefully. =

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-4a0e2d9-1f7c9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-4a0e2d9-1f7c9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?