Devise for Twitter, Cookie Overflow error?

devise, ruby-on-rails, twitter

Solution

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.

Problem

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 am getting the following error: ``` ActionDispatch::Cookies::CookieOverflow (ActionDispatch::Cookies::CookieOverflow): ``` at the following url: ``` http://localhost:3000/users/auth/twitter/callback?oauth_token=something&oauth_verifier=blah ``` Is there any nice way to get around fixing this problem? Thanks!

Original source