Class IAMAuth (7.6.2)

Package

google-auth-library!

Constructors

(constructor)(selector, token)

constructor(selector: string, token: string);

IAM credentials.

Parameters
NameDescription
selector string

the iam authority selector

token string

the token

Properties

selector

selector: string;
Property Value
TypeDescription
string

token

token: string;
Property Value
TypeDescription
string

Methods

getRequestHeaders()

getRequestHeaders(): {
        'x-goog-iam-authority-selector': string;
        'x-goog-iam-authorization-token': string;
    };

Acquire the HTTP headers required to make an authenticated request.

Returns
TypeDescription
{ 'x-goog-iam-authority-selector': string; 'x-goog-iam-authorization-token': string; }