Method: TransferWise::OAuth#get_access_token

Defined in:
lib/transfer_wise/oauth.rb

#get_access_token(code, redirect_url) ⇒ Object

Get the access token. You must pass the exact same redirect_url passed to the authorize_url method



28
29
30
# File 'lib/transfer_wise/oauth.rb', line 28

def get_access_token(code, redirect_url)
  @access_token ||= client.auth_code.get_token(code, redirect_uri: redirect_url)
end