Error: failed to find request token in session

后端 未结 3 990
囚心锁ツ
囚心锁ツ 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.

    0 讨论(0)
  • 2021-02-19 02:30

    ... Sigh. I forgot I changed the subdomain. So, the cookie wasn't readable because the domain name was different.

    0 讨论(0)
  • 2021-02-19 02:50

    To solved this problem in my case, was necessary setup the host file to use custom domain instead localhost or 127.0.0.1..

    0 讨论(0)
提交回复
热议问题