Class: GenerateOAuthToken

Inherits:
Object
  • Object
show all
Defined in:
lib/AuthenticationSDK/authentication/oauth/OAuthToken.rb

Instance Method Summary collapse

Instance Method Details

#getToken(merchantconfig_obj, gmtDatetime) ⇒ Object

JWT Token-generated based on the Request type



12
13
14
15
16
17
18
19
# File 'lib/AuthenticationSDK/authentication/oauth/OAuthToken.rb', line 12

def getToken(merchantconfig_obj, gmtDatetime)
  @log_obj = Log.new merchantconfig_obj.log_config, "OAuthToken"
  token = merchantconfig_obj.accessToken
rescue StandardError => err
  @log_obj.logger.error(ExceptionHandler.new.new_api_exception err)
  raise err
  # exit!
end