verify_login.h 542 B

12345678910111213141516171819
  1. // SPDX-FileCopyrightText: 2017 Citra Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include <string>
  5. namespace WebService {
  6. /**
  7. * Checks if username and token is valid
  8. * @param host the web API URL
  9. * @param username yuzu username to use for authentication.
  10. * @param token yuzu token to use for authentication.
  11. * @returns a bool indicating whether the verification succeeded
  12. */
  13. bool VerifyLogin(const std::string& host, const std::string& username, const std::string& token);
  14. } // namespace WebService