While using Github as a provider the callback url returns the following error message
undefined method 'user_authentications' for nil:NilClass for the line
authentication = provider.user_authentications.where(uid: auth_params.uid).first on OmniauthCallbacksController
While using Github as a provider the callback url returns the following error message
undefined method 'user_authentications' for nil:NilClass
for the lineauthentication = provider.user_authentications.where(uid: auth_params.uid).first
on OmniauthCallbacksController