-
-
Notifications
You must be signed in to change notification settings - Fork 74
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
Do you have a question regarding how to use the plugin? Please describe.
A clear and concise description of what the question is. Ex. How do I retry a request? [...]
@override
Future<BaseRequest> interceptRequest({required BaseRequest request}) async{
try {
var token = await GetStorage().read('token');
request.headers["Content-type"] = "application/json";
request.headers["Accept"] = "application/json";
request.headers["Authorization"] = "Bearer " + token;
} catch (e) {
print(e);
}
return request;
}
@override
Future<bool> shouldInterceptRequest() {
// TODO: implement shouldInterceptRequest
throw true;
}Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested