File tree Expand file tree Collapse file tree 3 files changed +16
-21
lines changed
hoppscotch-common/src/components/http/authorization
hoppscotch-selfhost-web/src/platform/auth Expand file tree Collapse file tree 3 files changed +16
-21
lines changed Original file line number Diff line number Diff line change 235235 </div >
236236
237237 <!-- Parameter rows -->
238- <div class =" divide-y divide-dividerLight" v-else >
238+ <div v-else class =" divide-y divide-dividerLight" >
239239 <HttpKeyValue
240- :show-description =" false"
241240 v-for =" (param, index) in workingAuthRequestParams"
242241 :key =" `auth-request-param-${param.id}`"
243242 v-model:name =" param.key"
244243 v-model:value =" param.value"
244+ :show-description =" false"
245245 :total =" workingAuthRequestParams.length"
246246 :index =" index"
247247 :entity-id =" param.id"
314314 </div >
315315
316316 <!-- Parameter rows -->
317- <div class =" divide-y divide-dividerLight" v-else >
317+ <div v-else class =" divide-y divide-dividerLight" >
318318 <HttpKeyValue
319- :show-description =" false"
320319 v-for =" (param, index) in workingTokenRequestParams"
321320 :key =" `token-request-param-${param.id}`"
322321 v-model:name =" param.key"
323322 v-model:value =" param.value"
323+ :show-description =" false"
324324 :total =" workingTokenRequestParams.length"
325325 :index =" index"
326326 :entity-id =" param.id"
448448 </div >
449449
450450 <!-- Parameter rows -->
451- <div class =" divide-y divide-dividerLight" v-else >
451+ <div v-else class =" divide-y divide-dividerLight" >
452452 <HttpKeyValue
453- :show-description =" false"
454453 v-for =" (param, index) in workingRefreshRequestParams"
455454 :key =" `refresh-request-param-${param.id}`"
456455 v-model:name =" param.key"
457456 v-model:value =" param.value"
457+ :show-description =" false"
458458 :total =" workingRefreshRequestParams.length"
459459 :index =" index"
460460 :entity-id =" param.id"
Original file line number Diff line number Diff line change @@ -89,9 +89,8 @@ async function getInitialUserDetails(): Promise<
8989> {
9090 try {
9191 const accessToken = await persistenceService . getLocalConfig ( "access_token" )
92- const refreshToken = await persistenceService . getLocalConfig (
93- "refresh_token"
94- )
92+ const refreshToken =
93+ await persistenceService . getLocalConfig ( "refresh_token" )
9594
9695 if ( ! accessToken || ! refreshToken ) {
9796 return { error : "auth/cookies_not_found" }
@@ -224,9 +223,8 @@ export async function setInitialUser() {
224223
225224async function refreshToken ( ) {
226225 try {
227- const refreshToken = await persistenceService . getLocalConfig (
228- "refresh_token"
229- )
226+ const refreshToken =
227+ await persistenceService . getLocalConfig ( "refresh_token" )
230228 if ( ! refreshToken ) return null
231229
232230 const { response } = interceptorService . execute ( {
@@ -455,9 +453,8 @@ export const def: AuthPlatformDef = {
455453 } ,
456454
457455 async signInWithEmailLink ( _email : string , url : string ) {
458- const deviceIdentifier = await persistenceService . getLocalConfig (
459- "deviceIdentifier"
460- )
456+ const deviceIdentifier =
457+ await persistenceService . getLocalConfig ( "deviceIdentifier" )
461458
462459 if ( ! deviceIdentifier ) {
463460 throw new Error (
Original file line number Diff line number Diff line change @@ -302,9 +302,8 @@ export const def: AuthPlatformDef = {
302302
303303 const token = searchParams . get ( "token" )
304304
305- const deviceIdentifier = await persistenceService . getLocalConfig (
306- "deviceIdentifier"
307- )
305+ const deviceIdentifier =
306+ await persistenceService . getLocalConfig ( "deviceIdentifier" )
308307
309308 await axios . post (
310309 `${ import . meta. env . VITE_BACKEND_API_URL } /auth/verify` ,
@@ -356,9 +355,8 @@ export const def: AuthPlatformDef = {
356355
357356 async processMagicLink ( ) {
358357 if ( this . isSignInWithEmailLink ( window . location . href ) ) {
359- const deviceIdentifier = await persistenceService . getLocalConfig (
360- "deviceIdentifier"
361- )
358+ const deviceIdentifier =
359+ await persistenceService . getLocalConfig ( "deviceIdentifier" )
362360
363361 if ( ! deviceIdentifier ) {
364362 throw new Error (
You can’t perform that action at this time.
0 commit comments