From 2e693de7fa32e09ca37eda1bf40b0cffa061d9c4 Mon Sep 17 00:00:00 2001 From: Z User Date: Fri, 27 Mar 2026 22:27:46 +0000 Subject: [PATCH] Add Auth0 authentication and user dashboard - Add Auth0 SPA SDK integration for authentication - Create login/logout flow with Auth0 - Add user dashboard page with: - Profile display and editing - Credits balance and transaction history - API key management (create/revoke) - Account settings - Add API client for backend communication - Update navbar with Login/Dashboard buttons - Preserve existing landing page design Configuration: - Auth0 Domain: dev-t13zhs74oltgqtfxf.auth0.com - API base: /api (proxied through Caddy) --- dashboard.html | 488 +++++++++++++++++++++++++++++++++++++++++++++++++ index.html | 61 ++++++- js/api.js | 177 ++++++++++++++++++ js/auth.js | 176 ++++++++++++++++++ js/config.js | 38 ++++ 5 files changed, 937 insertions(+), 3 deletions(-) create mode 100644 dashboard.html create mode 100644 js/api.js create mode 100644 js/auth.js create mode 100644 js/config.js diff --git a/dashboard.html b/dashboard.html new file mode 100644 index 0000000..6f972c7 --- /dev/null +++ b/dashboard.html @@ -0,0 +1,488 @@ + + + + + + Dashboard • Moxiegen + + + + + + + + +
+ +
+

Welcome back, User

+

Manage your API keys, credits, and account settings.

+
+ + +
+ +
+
+ Credits + 💰 +
+
--
+

Available balance

+
+ + +
+
+ API Keys + 🔑 +
+
--
+

Active keys

+
+ + +
+
+ Plan + +
+
--
+

--

+
+
+ + +
+ +
+
+

API Keys

+ +
+ +
+
+
+
+ + +
+ + +
+

Recent Activity

+ +
+
+
+
+
+ + +
+
+ + +
+

Account Settings

+ +
+
+ + +
+
+ + +
+
+ +
+ + +
+
+
+ + +
+ + + + + + + + diff --git a/index.html b/index.html index fe25986..4ce6a4a 100644 --- a/index.html +++ b/index.html @@ -724,21 +724,35 @@