From 3efaf7c9463261fb2d182a7ae00d9045a2b273b8 Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Tue, 12 May 2026 13:50:45 -0500 Subject: 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> --- src/apiuseraccount.h | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'src/apiuseraccount.h') 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; }; -- cgit v1.3.1