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/settings.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/settings.h') 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 . #define SETTINGS_H #include "envdump.h" +#include "nexusoauthtokens.h" #include #include #include @@ -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(); -- cgit v1.3.1