authHeaders function

Map<String, String> authHeaders(
  1. String token,
  2. String? uniqueId
)

Implementation

Map<String, String> authHeaders(String token, String? uniqueId) {
  return {
    ...invalidateCacheHeaders,
    'Authorization': 'Bearer $token',
    'X-PI-Unique-Id': uniqueId ?? '',
    'X-PI-App': PerceptApp.name.asString,
    'X-PI-App-Version': PerceptApp.version.asString,
    'X-PI-SDK': PerceptSDK.type.asString,
    'X-PI-SDK-Version': PerceptSDK.version.asString,
  };
}