Class: Airwallex::Resources::Authentication

Inherits:
BaseResource show all
Defined in:
lib/airwallex/resources/authentication.rb

Constant Summary collapse

LOGIN_PATH =
"/authentication/login"

Instance Attribute Summary

Attributes inherited from BaseResource

#client

Instance Method Summary collapse

Methods inherited from BaseResource

#initialize

Constructor Details

This class inherits a constructor from Airwallex::Resources::BaseResource

Instance Method Details

#loginObject



8
9
10
11
12
13
14
# File 'lib/airwallex/resources/authentication.rb', line 8

def 
  client.validate_credentials!

  response = post(LOGIN_PATH, {}, authentication_headers, authenticated: false)
  client.store_token!(response)
  response
end