diff --git a/app/controllers/auth_controller.rb b/app/controllers/auth_controller.rb index 043dec390d..cde28653ee 100644 --- a/app/controllers/auth_controller.rb +++ b/app/controllers/auth_controller.rb @@ -19,7 +19,14 @@ def callback Achiever::FetchUsersCompletedCoursesFromAchieverJob.perform_later(user) rescue => e Sentry.with_scope do |scope| - scope.set_context("oauth_custom_claim", auth&.info) + scope.set_context("CustomClaim", { + email: auth.info.email, + first_name: auth.info.first_name, + last_name: auth.info.last_name, + stem_achiever_contact_no: auth.info.achiever_contact_no, + auth0_id: auth.uid, + stem_user_id: auth.info.stem_user_id + }) Sentry.capture_exception(e) end