fix : cancel token

This commit is contained in:
2025-07-23 08:44:14 +03:30
parent 4fed369b5d
commit 659e32dc8e
3 changed files with 34 additions and 20 deletions

View File

@@ -17,7 +17,8 @@ Future<void> setupChickenDI() async {
diChicken.registerLazySingleton<AppInterceptor>(
() => AppInterceptor(
refreshTokenCallback: () async {},
//فعلا سامانه مرغ برای رفرش توکن چیزی ندارد
refreshTokenCallback: () async => null,
saveTokenCallback: (String newToken) async {
await tokenService.saveAccessToken(newToken);
},
@@ -25,6 +26,7 @@ Future<void> setupChickenDI() async {
await tokenService.deleteTokens();
Get.offAllNamed(AuthPaths.auth, arguments: Module.chicken);
},
authArguments: Module.chicken,
),
instanceName: 'chickenInterceptor',
);