feat : role And permission

This commit is contained in:
2025-09-06 14:50:02 +03:30
parent bdf5344451
commit 34609d22a1
34 changed files with 657 additions and 306 deletions

View File

@@ -23,7 +23,7 @@ Future<void> setupLiveStockDI() async {
final tokenService = Get.find<TokenStorageService>();
if (tokenService.baseurl.value == null) {
await tokenService.saveBaseUrl('https://api.dam.rasadyar.net/');
await tokenService.saveBaseUrl(Module.inspection,'https://api.dam.rasadyar.net/');
}
// First register AppInterceptor with lazy callbacks
@@ -42,10 +42,10 @@ Future<void> setupLiveStockDI() async {
return null;
},
saveTokenCallback: (String newToken) async {
await tokenService.saveAccessToken(newToken);
// await tokenService.saveAccessToken(newToken);
},
clearTokenCallback: () async {
await tokenService.deleteTokens();
await tokenService.deleteAllTokens();
Get.offAllNamed(LiveStockRoutes.auth, arguments: Module.liveStocks);
},
authArguments: Module.liveStocks,