File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ import type { ApiErrorResponse } from '~/types';
9
9
import * as Sentry from '@sentry/nextjs' ;
10
10
import axios , { isAxiosError } from 'axios' ;
11
11
12
- import { reissueToken , signOut } from '~/services/auth' ;
13
- import { clearPrivateData } from '~/utils/clearPrivateData' ;
12
+ import { reissueToken } from '~/services/auth' ;
14
13
import { createRequestInfiniteLoopDetector } from '~/utils/createRequestInfiniteLoopDetector' ;
15
14
import { customToast } from '~/utils/customToast' ;
16
15
import { qsStringify } from '~/utils/qsUtils' ;
@@ -49,14 +48,12 @@ const detectRequestInfiniteLoop = createRequestInfiniteLoopDetector(
49
48
requestCounterConsideredInfiniteLoop ,
50
49
{
51
50
timerSeconds : 10 ,
52
- onDetect : async ( ) => {
51
+ onDetect : ( ) => {
53
52
const errorMessage = isDevMode
54
53
? '등록하지 않은 Mocking API가 있는지 확인해주세요! HTTP Method가 일치하지 않는 문제일 수도 있습니다.'
55
54
: '오류가 발생했습니다.' ;
56
55
customToast . clientError ( errorMessage ) ;
57
56
Sentry . captureException ( new Error ( 'Error: Detect request infinite loop' ) ) ;
58
- await signOut ( ) ;
59
- clearPrivateData ( ) ;
60
57
} ,
61
58
}
62
59
) ;
You can’t perform that action at this time.
0 commit comments