Closed momwhocode closed 2 years ago
You will definitely need to add some scopes to the login. Ideally you should be getting all the scopes you need when you initialize the plugin. My guess is you are just missing the needed scope for that call.
config.omniauth :google_oauth2, client_id, client_secret
Error -
Google::Apis::ClientError: insufficientPermissions: Request had insufficient authentication scopes.
Facing error - at line
result = service.list_user_labels user_id
in dashboards_controller.rbFollowing are my files.
devise.rb
users/omniauth_callbacks_controller.rb
dashboards_controller.rb