This commit is contained in:
24c02 2026-01-30 16:24:43 -05:00
parent cd73ee5b57
commit a3e2de54e4

View file

@ -21,7 +21,7 @@ class User < ApplicationRecord
def self.find_or_create_from_omniauth(auth)
hca_id = auth.uid
slack_id = auth.extra.raw_info.slack_id
slack_id = auth.extra.raw_info.dig("identity", "slack_id")
raise "Missing HCA user ID from authentication" if hca_id.blank?
user = find_by(hca_id:)