onRequest method
Called when the request is about to be sent.
Implementation
@override
void onRequest(RequestOptions options, RequestInterceptorHandler handler) async {
try {
/// Add token to header if needed
options.headers.addAll(await _addAuthorizationHeader());
} catch (e) {
print("Error adding authorization header: $e");
}
super.onRequest(options, handler);
}