exchangeApiKeyAuthorizationCode()
function exchangeApiKeyAuthorizationCode(__namedParameters): Promise<{
api?: {
links?: Record<string, {
href: string;
}>;
redactions?: object[];
};
client: | {
device: string | null;
id: "modem-cli";
}
| null;
createdAt: string;
expiresAt: string | null;
id: string;
lastUsedAt: string | null;
modes: string[];
name: string;
object: "admin_api_key";
owner: {
email: string | null;
id: string;
name: string | null;
};
permissions: string[];
previousSecretExpiresAt: string | null;
projects: string[] | "all";
rotatedAt: string | null;
secret: string;
secretPreview: string;
}>;Trades the code from the consent screen’s callback for the approved key and its secret. The code works once, so the response is read leniently: a permission a newer server added still returns the secret.
Parameters
__namedParameters
AdminAppLocation & object
Last updated on