Open pJeyakumar opened 5 months ago
In the code, we now have omniauth,
so in case we want to use Google or Facebook, we can include the IDs in the configuration with this setup in the devise.rb initializer:
config.omniauth :facebook, 'APP_ID', 'APP_SECRET', scope: 'email', info_fields: 'email,name'
config.omniauth :google_oauth2, 'GOOGLE_CLIENT_ID', 'GOOGLE_CLIENT_SECRET', scope: 'userinfo.email,userinfo.profile'
Implement OAuth so that an user can log into the local environment with a hard-coded passphrase.