lib/omniauth/strategies/linkedin.rb in omniauth-linkedin-oauth2-0.1.4 vs lib/omniauth/strategies/linkedin.rb in omniauth-linkedin-oauth2-0.1.5

- old
+ new

@@ -47,10 +47,12 @@ alias :oauth2_access_token :access_token def access_token ::OAuth2::AccessToken.new(client, oauth2_access_token.token, { :mode => :query, - :param_name => 'oauth2_access_token' + :param_name => 'oauth2_access_token', + :expires_in => oauth2_access_token.expires_in, + :expires_at => oauth2_access_token.expires_at }) end def raw_info @raw_info ||= access_token.get("/v1/people/~:(#{options.fields.join(',')})?format=json").parsed