lib/omniauth/strategies/line.rb in omniauth-ljne-0.1.1 vs lib/omniauth/strategies/line.rb in omniauth-ljne-0.1.2

- old
+ new

@@ -3,11 +3,11 @@ module OmniAuth module Strategies class Line < OmniAuth::Strategies::OAuth2 option :name, 'line' - option :scope, 'profile openid' + option :scope, 'profile openid email' option :client_options, { site: 'https://access.line.me', authorize_url: '/oauth2/v2.1/authorize', token_url: '/oauth2/v2.1/token' @@ -41,10 +41,12 @@ uid { raw_info['userId'] } info do { name: raw_info['displayName'], + email: raw_info['email'], image: raw_info['pictureUrl'], + email: raw_info['pictureUrl'], description: raw_info['statusMessage'] } end def raw_info