From 6473cd5af65a7bef6fba4423cc84d9b02344f4c4 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com> Date: Mon, 28 Jul 2025 23:50:36 +0530 Subject: [PATCH] chore: resolve lint errors --- .../src/components/http/authorization/OAuth2.vue | 12 ++++++------ .../src/platform/auth/desktop/index.ts | 15 ++++++--------- .../src/platform/auth/web/index.ts | 10 ++++------ 3 files changed, 16 insertions(+), 21 deletions(-) diff --git a/packages/hoppscotch-common/src/components/http/authorization/OAuth2.vue b/packages/hoppscotch-common/src/components/http/authorization/OAuth2.vue index 8f1c2f55..817cc6f6 100644 --- a/packages/hoppscotch-common/src/components/http/authorization/OAuth2.vue +++ b/packages/hoppscotch-common/src/components/http/authorization/OAuth2.vue @@ -235,13 +235,13 @@ -
+
-
+
-
+
{ try { const accessToken = await persistenceService.getLocalConfig("access_token") - const refreshToken = await persistenceService.getLocalConfig( - "refresh_token" - ) + const refreshToken = + await persistenceService.getLocalConfig("refresh_token") if (!accessToken || !refreshToken) { return { error: "auth/cookies_not_found" } @@ -224,9 +223,8 @@ export async function setInitialUser() { async function refreshToken() { try { - const refreshToken = await persistenceService.getLocalConfig( - "refresh_token" - ) + const refreshToken = + await persistenceService.getLocalConfig("refresh_token") if (!refreshToken) return null const { response } = interceptorService.execute({ @@ -455,9 +453,8 @@ export const def: AuthPlatformDef = { }, async signInWithEmailLink(_email: string, url: string) { - const deviceIdentifier = await persistenceService.getLocalConfig( - "deviceIdentifier" - ) + const deviceIdentifier = + await persistenceService.getLocalConfig("deviceIdentifier") if (!deviceIdentifier) { throw new Error( diff --git a/packages/hoppscotch-selfhost-web/src/platform/auth/web/index.ts b/packages/hoppscotch-selfhost-web/src/platform/auth/web/index.ts index b60f556e..b325779e 100644 --- a/packages/hoppscotch-selfhost-web/src/platform/auth/web/index.ts +++ b/packages/hoppscotch-selfhost-web/src/platform/auth/web/index.ts @@ -302,9 +302,8 @@ export const def: AuthPlatformDef = { const token = searchParams.get("token") - const deviceIdentifier = await persistenceService.getLocalConfig( - "deviceIdentifier" - ) + const deviceIdentifier = + await persistenceService.getLocalConfig("deviceIdentifier") await axios.post( `${import.meta.env.VITE_BACKEND_API_URL}/auth/verify`, @@ -356,9 +355,8 @@ export const def: AuthPlatformDef = { async processMagicLink() { if (this.isSignInWithEmailLink(window.location.href)) { - const deviceIdentifier = await persistenceService.getLocalConfig( - "deviceIdentifier" - ) + const deviceIdentifier = + await persistenceService.getLocalConfig("deviceIdentifier") if (!deviceIdentifier) { throw new Error(