Files
turftracker/backend/node_modules/google-auth-library/build/src/gtoken/tokenOptions.d.ts
2026-04-09 13:19:47 -05:00

45 lines
1.0 KiB
TypeScript

import { GaxiosOptions, GaxiosPromise } from 'gaxios';
interface Transporter {
request<T>(opts: GaxiosOptions): GaxiosPromise<T>;
}
interface TokenOptions {
/**
* Path to a .json, .pem, or .p12 key file.
*/
keyFile?: string;
/**
* The raw private key value.
*/
key?: string;
/**
* The service account email address.
*/
email?: string;
/**
* The issuer claim for the JWT.
*/
iss?: string;
/**
* The subject claim for the JWT. This is used for impersonation.
*/
sub?: string;
/**
* The space-delimited list of scopes for the requested token.
*/
scope?: string | string[];
/**
* Additional claims to include in the JWT payload.
*/
additionalClaims?: {
[key: string]: any;
};
/**
* Eagerly refresh unexpired tokens when they are within this many
* milliseconds from expiring.
* Defaults to 0.
*/
eagerRefreshThresholdMillis?: number;
transporter?: Transporter;
}
export { Transporter, TokenOptions };