Class: Invoice2go::Token

Inherits:
Faraday::Middleware
  • Object
show all
Defined in:
lib/invoice2go/token.rb

Overview

Authentication middleware used if oauth_token and refresh_token are set

Instance Method Summary collapse

Instance Method Details

#paramsObject



4
5
6
7
8
9
# File 'lib/invoice2go/token.rb', line 4

def params
  { grant_type: 'refresh_token',
    refresh_token: config[:refresh_token],
    client_id: config[:client_id],
    client_secret: config[:client_secret] }
end