更新时间:2021-07-11 05:58:41
我发现了这个问题。我已经在 devise.rb 和 omniauth.rb 中配置了提供程序。我只是删除了omniauth.rb,它开始工作。
devise.rb
omniauth.rb
I found the issue. I have configured providers in both devise.rb and omniauth.rb. I simply removed omniauth.rb and it started working.
Rails使用Twitter Bootstrap Navbar登录(w / Devise)?
Rails:使用 Devise 登录 Omniauth 后从 Facebook 检索图像
rails5 api + devise_token_auth:通过omniauth2成功登录后,没有访问令牌和uid返回
认证失败:Devise + OmniAuth + Twitter