+
{
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(