File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1018,18 +1018,22 @@ class GoTrueClient {
1018
1018
String ? refreshToken,
1019
1019
String ? accessToken,
1020
1020
}) {
1021
+ print ("🦁 SET TIMER REFRESH TOKEN 🦁" );
1021
1022
_refreshTokenTimer? .cancel ();
1022
1023
_refreshTokenRetryCount++ ;
1023
1024
if (_refreshTokenRetryCount < Constants .maxRetryCount) {
1024
1025
_refreshTokenTimer = Timer (timerDuration, () async {
1026
+ print ("🦁 CALL TIMER REFRESH TOKEN 🦁" );
1025
1027
try {
1026
1028
await _callRefreshToken (
1027
1029
refreshToken: refreshToken,
1028
1030
accessToken: accessToken,
1029
1031
ignorePendingRequest: true ,
1030
1032
);
1031
- } catch (_) {
1033
+ print ("🦁 SUCCESS TIMER REFRESH TOKEN 🦁" );
1034
+ } catch (err, stack) {
1032
1035
// Catch any error, because in this case they should be handled by listening to [onAuthStateChange]
1036
+ print ("🦁 ERROR TIMER REFRESH TOKEN 🦁: $err #stack" );
1033
1037
}
1034
1038
});
1035
1039
} else {
You can’t perform that action at this time.
0 commit comments