mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-15 09:45:22 +00:00
fetch groups
This commit is contained in:
@ -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);
|
||||
}
|
||||
//
|
||||
|
Reference in New Issue
Block a user