verify_login.h 571 B

1234567891011121314151617181920
  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 <string>
  6. namespace WebService {
  7. /**
  8. * Checks if username and token is valid
  9. * @param host the web API URL
  10. * @param username yuzu username to use for authentication.
  11. * @param token yuzu token to use for authentication.
  12. * @returns a bool indicating whether the verification succeeded
  13. */
  14. bool VerifyLogin(const std::string& host, const std::string& username, const std::string& token);
  15. } // namespace WebService