2017-09-19 03:18:26 +02:00
|
|
|
// Copyright 2017 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
#include <future>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace WebService {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Checks if username and token is valid
|
2018-09-12 18:22:48 +02:00
|
|
|
* @param host the web API URL
|
2017-09-19 03:18:26 +02:00
|
|
|
* @param username Citra username to use for authentication.
|
|
|
|
* @param token Citra token to use for authentication.
|
2018-09-12 18:22:48 +02:00
|
|
|
* @returns a bool indicating whether the verification succeeded
|
2017-09-19 03:18:26 +02:00
|
|
|
*/
|
2018-09-12 18:22:48 +02:00
|
|
|
bool VerifyLogin(const std::string& host, const std::string& username, const std::string& token);
|
2017-09-19 03:18:26 +02:00
|
|
|
|
|
|
|
} // namespace WebService
|