class Github::Client::Authorizations::App

def check(*args)

Other tags:
    Api: - public
def check(*args)
  raise_authentication_error unless authenticated?
  params = arguments(args, required: [:client_id, :access_token]).params
  if arguments.client_id
    begin
      get_request("/applications/#{arguments.client_id}/tokens/#{arguments.access_token}", params)
    rescue Github::Error::NotFound
      nil
    end
  else
    raise raise_app_authentication_error
  end
end