summaryrefslogtreecommitdiff
path: root/src/settings.h
diff options
context:
space:
mode:
authorJeremy Rimpo <jeremy.rimpo@servermonkey.com>2026-05-12 13:50:45 -0500
committerGitHub <noreply@github.com>2026-05-12 13:50:45 -0500
commit3efaf7c9463261fb2d182a7ae00d9045a2b273b8 (patch)
tree8cc2c9f14d8cffe73187cf42ce8141c87bccef32 /src/settings.h
parent41ffb25c03956d1c6619c284e821611e70bcc307 (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/settings.h')
-rw-r--r--src/settings.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/settings.h b/src/settings.h
index 626582d1..28eeb1fd 100644
--- a/src/settings.h
+++ b/src/settings.h
@@ -21,6 +21,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#define SETTINGS_H
#include "envdump.h"
+#include "nexusoauthtokens.h"
#include <lootcli/lootcli.h>
#include <questionboxmemory.h>
#include <uibase/filterwidget.h>
@@ -975,6 +976,24 @@ public:
//
static bool hasNexusApiKey();
+ // Retrieves the stored OAuth tokens. Returns false if the credential doesn't exist
+ // or can't be parsed.
+ //
+ static bool nexusOAuthTokens(NexusOAuthTokens& tokens);
+
+ // Persists the OAuth tokens inside the credentials store, replacing the previous
+ // entry. Returns false on errors.
+ //
+ static bool setNexusOAuthTokens(const NexusOAuthTokens& tokens);
+
+ // Removes the stored OAuth tokens; returns false on errors.
+ //
+ static bool clearNexusOAuthTokens();
+
+ // Returns whether OAuth tokens are currently stored.
+ //
+ static bool hasNexusOAuthTokens();
+
// resets anything that the user can disable
static void resetDialogs();