From 892f69817b2b9c79985248fde76d871f7729b45c Mon Sep 17 00:00:00 2001 From: thibaud-leclere Date: Wed, 6 May 2026 08:47:37 +0200 Subject: [PATCH] feat: add local app login --- packages/hoppscotch-common/locales/en.json | 3 + .../src/components/firebase/Login.vue | 63 ++++++++++++++++++- .../hoppscotch-common/src/platform/auth.ts | 13 +++- .../src/platform/auth/desktop/api.ts | 2 +- .../src/platform/auth/desktop/index.ts | 19 ++++++ .../src/platform/auth/web/api.ts | 15 ++++- .../src/platform/auth/web/index.ts | 11 +++- 7 files changed, 119 insertions(+), 7 deletions(-) diff --git a/packages/hoppscotch-common/locales/en.json b/packages/hoppscotch-common/locales/en.json index 2a73e6e4..67a6303f 100644 --- a/packages/hoppscotch-common/locales/en.json +++ b/packages/hoppscotch-common/locales/en.json @@ -192,6 +192,7 @@ "continue_with_github_enterprise": "Continue with GitHub Enterprise", "continue_with_google": "Continue with Google", "continue_with_microsoft": "Continue with Microsoft", + "continue_with_username": "Continue with username", "email": "Email", "logged_out": "Logged out", "login": "Login", @@ -200,7 +201,9 @@ "logout": "Logout", "re_enter_email": "Re-enter email", "send_magic_link": "Send a magic link", + "password": "Password", "sync": "Sync", + "username": "Username", "we_sent_magic_link": "We sent you a magic link!", "we_sent_magic_link_description": "Check your inbox - we sent an email to {email}. It contains a magic link that will log you in." }, diff --git a/packages/hoppscotch-common/src/components/firebase/Login.vue b/packages/hoppscotch-common/src/components/firebase/Login.vue index 6cd6017a..a54f0917 100644 --- a/packages/hoppscotch-common/src/components/firebase/Login.vue +++ b/packages/hoppscotch-common/src/components/firebase/Login.vue @@ -60,6 +60,32 @@ :label="`${t('auth.send_magic_link')}`" /> +
+ + + + +
-
+