Module: Idnow::API::Authentication

Included in:
Client
Defined in:
lib/idnow/API/authentication.rb

Instance Method Summary collapse

Instance Method Details

#loginObject



6
7
8
9
10
11
12
# File 'lib/idnow/API/authentication.rb', line 6

def 
  path = full_path_for('login')
   = Idnow::LoginData.new(@api_key)
  request = Idnow::PostJsonRequest.new(path, )
  response = execute(request)
  @auth_token = Idnow::Login.new(response.data).auth_token
end