class Devise::Strategies::Base

def store?

Whenever CSRF cannot be verified, we turn off any kind of storage
def store?
  !env["devise.skip_storage"]
end