when using zitadel api with protobuf .
export async function systemAPIToken() {
const token = {
audience: process.env.AUDIENCE,
userID: process.env.SYSTEM_USER_ID,
token: Buffer.from(process.env.SYSTEM_USER_PRIVATE_KEY, "base64").toString(
"utf-8",
),
};
return newSystemToken({
audience: token.audience,
subject: token.userID,
key: token.token,
});
}

2 Replies
have this keys.json from management api user

Hey @Saad, thanks for reaching out! Could you please clarify what is the question here? What is the issue you are facing? What is it that you want to achieve, what is the documentation/guide you followed, if any, and what is the unexpected behavior that you saw? Please let me know so that I can help you, thanks!