feat : role And permission
This commit is contained in:
@@ -126,7 +126,7 @@ class AuthLogic extends GetxController with GetTickerProviderStateMixin {
|
||||
call: () async => await authRepository.login(authRequest: loginRequestModel.toJson()),
|
||||
onSuccess: (result) async {
|
||||
await tokenStorageService.saveModule(_module);
|
||||
await tokenStorageService.saveRefreshToken(result?.refresh ?? '');
|
||||
/* await tokenStorageService.saveRefreshToken(result?.refresh ?? '');
|
||||
await tokenStorageService.saveAccessToken(result?.access ?? '');
|
||||
if (rememberMe.value) {
|
||||
await tokenStorageService.saveUserPass(
|
||||
@@ -136,7 +136,7 @@ class AuthLogic extends GetxController with GetTickerProviderStateMixin {
|
||||
module: _module,
|
||||
),
|
||||
);
|
||||
}
|
||||
}*/
|
||||
|
||||
Get.offAllNamed(LiveStockRoutes.init);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user