I followed the pull request from the branch to the master (devise) but I'm still having the error and I can't deploy the api to the server anymore
I also tried the solutions provided in this question but was not successful:
Latest omniauth-facebook gem breaks devise
The error:
/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/devise-4.7.3/lib/devise/omniauth.rb:12:in `<top (required)>': You are using an old OmniAuth version, please ensure you have 1.0.0.pr2 version or later installed. (RuntimeError)
the error is the same on localhost
Ruby version: 2.5.1p57
rails (5.1.7)
devise (4.7.3)
omniauth (2.0.1)
omniauth-facebook (8.0.0)
omniauth-oauth2 (1.7.1)