Devise for Twitter, Cookie Overflow error?

后端 未结 2 1303
伪装坚强ぢ
伪装坚强ぢ 2021-01-31 09:49

I am trying to integrate twitter into devise using this guide. I basically take all occurence of facebook and substitue it with twitter. However, when I sign in with twitter, I

2条回答
  •  长情又很酷
    2021-01-31 10:14

    The problem is with session["devise.facebook_data"] = env["omniauth.auth"]. Twitter's response contains an extra section that is very large and does not fit in the session. One option is to store env["omniauth.auth"].except("extra") in the session instead.

提交回复
热议问题