mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-31 10:00:46 +03:00
7b1fa60cc6
closes #94
24 lines
371 B
C++
24 lines
371 B
C++
#include "httplib.h"
|
|
|
|
#include <QObject>
|
|
#include <string>
|
|
|
|
class SSOHandler : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
SSOHandler(QObject *parent = nullptr);
|
|
|
|
~SSOHandler();
|
|
|
|
std::string url() const;
|
|
|
|
signals:
|
|
void ssoSuccess(std::string token);
|
|
void ssoFailed();
|
|
|
|
private:
|
|
httplib::Server svr;
|
|
int port = 0;
|
|
};
|