verify_login.h 611 B

12345678910111213141516171819202122
  1. // Copyright 2017 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <functional>
  6. #include <future>
  7. #include <string>
  8. namespace WebService {
  9. /**
  10. * Checks if username and token is valid
  11. * @param host the web API URL
  12. * @param username yuzu username to use for authentication.
  13. * @param token yuzu token to use for authentication.
  14. * @returns a bool indicating whether the verification succeeded
  15. */
  16. bool VerifyLogin(const std::string& host, const std::string& username, const std::string& token);
  17. } // namespace WebService