fetch groups

This commit is contained in:
Mohammad Salameh
2024-03-18 11:46:27 +03:00
parent 65cbf10485
commit 13e80fbad7
20 changed files with 273 additions and 164 deletions

View File

@ -12,10 +12,10 @@ class HTTPInterceptor extends InterceptorsWrapper {
@override
void onRequest(
RequestOptions options, RequestInterceptorHandler handler) async {
var storage = FlutterSecureStorage();
var storage = const FlutterSecureStorage();
var token = await storage.read(key: Token.loginAccessTokenKey);
options.headers['Authorization'] = 'Bearer $token';
options.headers['Authorization'] = 'Bearer $token';
super.onRequest(options, handler);
}
//