Commit 463fbe3 1 parent bf399e6 commit 463fbe3 Copy full SHA for 463fbe3
File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
- import Onyx from 'react-native-onyx' ;
2
1
import redirectToSignIn from '@libs/actions/SignInRedirect' ;
3
2
import * as Authentication from '@libs/Authentication' ;
4
3
import Log from '@libs/Log' ;
@@ -48,8 +47,12 @@ function retryReauthenticate(commandName?: string): Promise<void> {
48
47
} ) ;
49
48
}
50
49
50
+ // Used in tests to reset the reauthentication state
51
51
function resetReauthentication ( ) : void {
52
+ // Resets the authentication state flag to allow new reauthentication flows to start fresh
52
53
isAuthenticating = null ;
54
+
55
+ // Clears any pending reauth timeouts set by reauthThrottle.sleep()
53
56
reauthThrottle . clear ( ) ;
54
57
}
55
58
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class RequestThrottle {
24
24
clearTimeout ( this . timeoutID ) ;
25
25
this . timeoutID = undefined ;
26
26
}
27
- Log . info ( `[RequestThrottle - ${ this . name } ] in clear() ` ) ;
27
+ Log . info ( `[RequestThrottle - ${ this . name } ] cleared ` ) ;
28
28
}
29
29
30
30
getRequestWaitTime ( ) {
You can’t perform that action at this time.
0 commit comments