diff options
| author | Jeremy Rimpo <jeremy.rimpo@servermonkey.com> | 2026-05-12 13:50:45 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-12 13:50:45 -0500 |
| commit | 3efaf7c9463261fb2d182a7ae00d9045a2b273b8 (patch) | |
| tree | 8cc2c9f14d8cffe73187cf42ce8141c87bccef32 /src/apiuseraccount.h | |
| parent | 41ffb25c03956d1c6619c284e821611e70bcc307 (diff) | |
Migrating to OAuth Authentication (#2374)
Co-authored-by: aglowinthefield <146008217+aglowinthefield@users.noreply.github.com>
Co-authored-by: Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com>
Diffstat (limited to 'src/apiuseraccount.h')
| -rw-r--r-- | src/apiuseraccount.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/apiuseraccount.h b/src/apiuseraccount.h index 829654a5..628337f8 100644 --- a/src/apiuseraccount.h +++ b/src/apiuseraccount.h @@ -65,7 +65,12 @@ public: bool isValid() const; /** - * api key + * OAuth access token + */ + const QString& accessToken() const; + + /** + * OAuth access token */ const QString& apiKey() const; @@ -90,9 +95,14 @@ public: const APILimits& limits() const; /** - * sets the api key + * sets the OAuth access token + */ + APIUserAccount& accessToken(const QString& token); + + /** + * sets the OAuth access token */ - APIUserAccount& apiKey(const QString& key); + APIUserAccount& apiKey(const QString& apiKey); /** * sets the user id @@ -132,7 +142,7 @@ public: bool exhausted() const; private: - QString m_key, m_id, m_name; + QString m_accessToken, m_apiKey, m_id, m_name; APIUserAccountTypes m_type; APILimits m_limits; }; |
