The signWithApi method currently requires a projectId field:
_signWithApi (data, callback) {
if (!this.projectId) {
callback(new Error('Cannot sign data without a project ID.'));
return;
}
...
}
However, IAM's signBlob endpoint can be called without a projectId if necessary (using - as a wildcard):
/projects/-/serviceAccounts/${clientEmail}
Can we modify the implementation to default to - wildcard when a projectId is not given explicitly? This will greatly simplify the usage of the library in some high-level applications, such as firebase-admin.
The signWithApi method currently requires a
projectId
field:However, IAM's signBlob endpoint can be called without a
projectId
if necessary (using-
as a wildcard):Can we modify the implementation to default to
-
wildcard when aprojectId
is not given explicitly? This will greatly simplify the usage of the library in some high-level applications, such asfirebase-admin
.