1d468ac35a
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
34 lines
739 B
C++
34 lines
739 B
C++
#pragma once
|
|
|
|
#include <QDateTime>
|
|
#include <QMap>
|
|
#include <QString>
|
|
#include <QVariantMap>
|
|
|
|
namespace Katabasis {
|
|
enum class Activity {
|
|
Idle,
|
|
LoggingIn,
|
|
LoggingOut,
|
|
Refreshing,
|
|
FailedSoft, //!< soft failure. this generally means the user auth details haven't been invalidated
|
|
FailedHard, //!< hard failure. auth is invalid
|
|
FailedGone, //!< hard failure. auth is invalid, and the account no longer exists
|
|
Succeeded
|
|
};
|
|
|
|
enum class Validity { None, Assumed, Certain };
|
|
|
|
struct Token {
|
|
QDateTime issueInstant;
|
|
QDateTime notAfter;
|
|
QString token;
|
|
QString refresh_token;
|
|
QVariantMap extra;
|
|
|
|
Validity validity = Validity::None;
|
|
bool persistent = true;
|
|
};
|
|
|
|
} // namespace Katabasis
|