Akash Deshbhratar
Akash Deshbhratar

Reputation: 11

Authentication failure! undefined method `values_at' for nil:NilClass: NoMethodError

I have rails 5 and ruby 2.7. I want to integrate github login on my system I have installed

gem 'devise'
gem 'omniauth-github'
gem "omniauth-rails_csrf_protection"

I did github config setting in /config/initializers/devise.rb file:

config.omniauth :github, 'APP_ID', 'APP_SECRET_KEY'

When I am clicking on sign in with github it is showing below error:

 ERROR -- omniauth: (github) Authentication failure! undefined method `values_at' for nil:NilClass: NoMethodError, undefined method `values_at' for nil:NilClass

I have gone through the complete documentaion of devise for omniauth documentation. But, still I am getting this error.

I want the user should get logged in using github.

Upvotes: 1

Views: 207

Answers (0)

Related Questions