Method: Justa::TokenManager.client_type_for

Defined in:
lib/justa/token_manager.rb

.client_type_for(key = Justa.default_client_key) ⇒ Symbol

Find a Client Type for a specific Key

Parameters:

  • key (Symbol) (defaults to: Justa.default_client_key)

    Client Key to be found in Authenticators Array ( Defaults to Justa.default_client_key)

Returns:

  • (Symbol)

    Return the cleint type ( :pdv or :e_commerce) ( Defaults to :pdv if not found)



125
126
127
# File 'lib/justa/token_manager.rb', line 125

def self.client_type_for(key = Justa.default_client_key)
  client_for(key)&.type || :pdv
end