dotherside/lib/include/DOtherSide/Status/LocalAuthentication.h
Sale Djenic e79a3e179f feat(@desktop/general): (macos) Keychain manager added
LocalAuthentication class - used to authenticate OS' logged user (using Touch Id)
Keychain class - able to store/read/remove item from the Keychain
KeychainManager class - manages the flow of storing/reading/removing an item from
the Keychain using own sync/async methods

This change is required as part of the feature issue-2675
2021-09-17 12:46:45 -04:00

34 lines
623 B
C++

#ifndef LOCAL_AUTHENTICATION_H
#define LOCAL_AUTHENTICATION_H
#include <QObject>
namespace Status
{
class LocalAuthentication : public QObject
{
Q_OBJECT
public:
enum Error {
Domain=0,
AppCanceled,
SystemCanceled,
UserCanceled,
TouchIdNotAvailable,
TouchIdNotConfigured,
WrongCredentials,
OtherError
};
void runAuthentication(const QString& authenticationReason);
signals:
void success();
void error(int error, const QString& errorString);
};
}
#endif