diff --git a/frontend/.prettierrc.js b/frontend/.prettierrc.js index 1e7dbd4f1..328dcd391 100644 --- a/frontend/.prettierrc.js +++ b/frontend/.prettierrc.js @@ -5,6 +5,4 @@ module.exports = { useTabs: false, tabWidth: 2, trailingComma:"es5", - importOrder: ['^[.]+$', '^[./]'], - importOrderSeparation: true, }; diff --git a/frontend/src/ts/auth.ts b/frontend/src/ts/auth.ts index 3b8d367ac..914b47920 100644 --- a/frontend/src/ts/auth.ts +++ b/frontend/src/ts/auth.ts @@ -61,15 +61,18 @@ export const signOut = async (): Promise => }); export const pollRefreshToken = (callback: (idToken: string) => void): void => { - setInterval(async () => { - const user = auth.currentUser; - if (user) { - const idToken = await user.getIdToken(true).catch(() => false); - if (idToken && typeof idToken === 'string') { - callback(idToken); + setInterval( + async () => { + const user = auth.currentUser; + if (user) { + const idToken = await user.getIdToken(true).catch(() => false); + if (idToken && typeof idToken === 'string') { + callback(idToken); + } } - } - }, 10 * 60 * 1000); + }, + 10 * 60 * 1000 + ); }; export const refreshToken = (): Promise | undefined => auth.currentUser?.getIdToken(true);