"Authentication failure! csrf_detected: OmniAuth::Strategies::OAuth2::CallbackError" Error due to missing session["omniauth.state"]

Is authentication starting and ending in the same browser? Have you changed the default same site cookies setting value?