getAuthorizationHeader method
Implementation
Map<String, String> getAuthorizationHeader(
{required String clientId, String? clientSecret}) {
var headers = <String, String>{};
if ((clientId.isNotEmpty) && (clientSecret != null)) {
var credentials = base64.encode(utf8.encode('$clientId:$clientSecret'));
headers['Authorization'] = 'Basic $credentials';
}
return headers;
}