From aed79e181dec5bd4f97ef42aee51dcd2ba3850c9 Mon Sep 17 00:00:00 2001 From: Brittany Miller Date: Wed, 20 Oct 2021 14:10:43 -0500 Subject: [PATCH] Reshape info hash for V1 backwards compatibility --- lib/omniauth/strategies/slack.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/omniauth/strategies/slack.rb b/lib/omniauth/strategies/slack.rb index 11d6848..3e75e4b 100644 --- a/lib/omniauth/strategies/slack.rb +++ b/lib/omniauth/strategies/slack.rb @@ -112,7 +112,8 @@ class Slack < OmniAuth::Strategies::OAuth2 # info do { - name: access_token.user_name + name: access_token.user_name, + email: access_token['user'].to_h['email'] } .merge access_token.to_hash end