Skip to content

FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.

Merge branch 'main' of https://github.com/Fincept-Corporation/FinceptTerminal

tilakpatel22c9d973622a66
diff --cc fincept-qt/src/auth/AuthManager.h
index 2d633b119,eefe3c040..1bf25eb01
--- a/fincept-qt/src/auth/AuthManager.h
+++ b/fincept-qt/src/auth/AuthManager.h
@@@ -18,16 -18,14 +18,22 @@@ class AuthManager : public QObject
bool is_authenticated() const { return session_.authenticated; }
bool is_loading() const { return is_loading_; }
+ /// Resolve the Fincept api_key for LLM/service callers WITHOUT touching the
+ /// plaintext SQLite settings table. Prefers the live in-memory session;
+ /// falls back to the encrypted SecureStorage copy (which load_session also
+ /// restores into the session at startup). Returns empty if no key is known.
+ /// This is the single supported resolver — callers must NOT read the legacy
+ /// plaintext "fincept_api_key" settings row.
+ QString fincept_api_key() const;
+
// Auth flows
void login(const QString& email, const QString& password, bool force_login = false);
+
+ /// Desktop Google sign-in via the website loopback handoff. Opens the
+ /// browser, redeems the returned one-time code, then drives the same
+ /// post-login flow as login() (emits login_succeeded / login_failed).
+ void login_with_google();
+
void signup(const QString& username, const QString& email, const QString& password, const QString& phone,
const QString& country = {}, const QString& country_code = {});
void verify_otp(const QString& email, const QString& otp);