Error: failed to find request token in session

后端 未结 3 977
囚心锁ツ
囚心锁ツ 2021-02-19 02:15

I found a few issues on the main passport repo, however, I think this primarily pertains to this specific strategy as I\'m able to successfully authenticate using the passport-g

3条回答
  •  半阙折子戏
    2021-02-19 02:24

    Hey if someone is still having the issue I have another solution...

    add this code :

    app.use(passport.session({ secret: 'Shhh.. This is a secret', cookie: { secure: true } }));
    

    just add cookie: { secure: true } and it will work just fine...

    I too had this issue and above technique helped me solve this.

提交回复
热议问题