Class: GenerateOAuthToken

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

Overview

JWT Token-generated based on the Request type

Instance Method Summary collapse

Instance Method Details

#getToken(merchantconfig_obj, gmtDatetime, log_obj) ⇒ Object



8
9
10
11
12
13
# File 'lib/AuthenticationSDK/authentication/oauth/OAuthToken.rb', line 8

def getToken(merchantconfig_obj,gmtDatetime,log_obj)
  token = merchantconfig_obj.accessToken
rescue StandardError => err
  ApiException.new.apiexception(err,log_obj)
  exit!
end