authenticate function

dynamic authenticate(
  1. String projectId,
  2. String clientKey
)

Implementation

authenticate(String projectId, String clientKey) {
  String auth = "$projectId:$clientKey";
  auth = base64.encode(utf8.encode(auth));
  auth = "Basic $auth";
  return auth;
}