diff --git a/webapp/src/globalContext/useAuthService.tsx b/webapp/src/globalContext/useAuthService.tsx index fb3f59c56b..a116dc4815 100644 --- a/webapp/src/globalContext/useAuthService.tsx +++ b/webapp/src/globalContext/useAuthService.tsx @@ -1,24 +1,18 @@ -import { useState } from 'react'; -import { T } from '@tolgee/react'; -import { useHistory } from 'react-router-dom'; -import { v4 as uuidv4 } from 'uuid'; +import {useState} from 'react'; +import {T} from '@tolgee/react'; +import {useHistory} from 'react-router-dom'; +import {v4 as uuidv4} from 'uuid'; -import { securityService } from 'tg.service/SecurityService'; -import { - ADMIN_JWT_LOCAL_STORAGE_KEY, - tokenService, -} from 'tg.service/TokenService'; -import { components } from 'tg.service/apiSchema.generated'; -import { useApiMutation } from 'tg.service/http/useQueryApi'; -import { useInitialDataService } from './useInitialDataService'; -import { LINKS, PARAMS } from 'tg.constants/links'; -import { - INVITATION_CODE_STORAGE_KEY, - InvitationCodeService, -} from 'tg.service/InvitationCodeService'; -import { messageService } from 'tg.service/MessageService'; -import { TranslatedError } from 'tg.translationTools/TranslatedError'; -import { useLocalStorageState } from 'tg.hooks/useLocalStorageState'; +import {securityService} from 'tg.service/SecurityService'; +import {ADMIN_JWT_LOCAL_STORAGE_KEY, tokenService,} from 'tg.service/TokenService'; +import {components} from 'tg.service/apiSchema.generated'; +import {useApiMutation} from 'tg.service/http/useQueryApi'; +import {useInitialDataService} from './useInitialDataService'; +import {Link, LINKS, PARAMS} from 'tg.constants/links'; +import {INVITATION_CODE_STORAGE_KEY, InvitationCodeService,} from 'tg.service/InvitationCodeService'; +import {messageService} from 'tg.service/MessageService'; +import {TranslatedError} from 'tg.translationTools/TranslatedError'; +import {useLocalStorageState} from 'tg.hooks/useLocalStorageState'; type LoginRequest = components['schemas']['LoginRequest']; type JwtAuthenticationResponse =