lib/omniauth/strategies/feishu.rb in omniauth-feishu-0.1.5 vs lib/omniauth/strategies/feishu.rb in omniauth-feishu-0.1.6

- old
+ new

@@ -15,22 +15,24 @@ token_url: "https://open.feishu.cn/open-apis/authen/v1/access_token", app_access_token_url: "https://open.feishu.cn/open-apis/auth/v3/app_access_token/internal", user_info_url: "https://open.feishu.cn/open-apis/authen/v1/user_info" } + uid { raw_info['user_id'] } + info do { name: raw_info['name'], email: raw_info['email'], mobile: raw_info['mobile'], avatar_url: raw_info['avatar_url'], avatar_thumb: raw_info['avatar_thumb'], avatar_middle: raw_info['avatar_middle'], avatar_big: raw_info['avatar_big'], - user_id: raw_info['user_id'], - union_id: raw_info['union_id'], - open_id: raw_info['open_id'], - en_name: raw_info['en_name'], + user_id: raw_info['user_id'], + union_id: raw_info['union_id'], + open_id: raw_info['open_id'], + en_name: raw_info['en_name'], app_access_token: @app_access_token } end def raw_info