lib/goauth2/client.rb in goauth2-0.0.2 vs lib/goauth2/client.rb in goauth2-0.0.3

- old
+ new

@@ -68,9 +68,10 @@ @token = access_token.token @expires_at = access_token.expires_at @expires_in = access_token.expires_in @access_token = OAuth2::AccessToken.new(client, @token, :refresh_token => @refresh_token, :expires_at => @expires_at, :expires_in => @expires_in) end + return @access_token end def _get_jsonc(url, params={}) params.merge! :params => {'alt' => 'jsonc'} res = _get(url, params)