1 | import { OAuth2Client, OAuth2ClientOptions, RequestMetadataResponse } from './oauth2client';
|
2 | export interface IdTokenOptions extends OAuth2ClientOptions {
|
3 | |
4 |
|
5 |
|
6 | idTokenProvider: IdTokenProvider;
|
7 | |
8 |
|
9 |
|
10 | targetAudience: string;
|
11 | }
|
12 | export interface IdTokenProvider {
|
13 | fetchIdToken: (targetAudience: string) => Promise<string>;
|
14 | }
|
15 | export declare class IdTokenClient extends OAuth2Client {
|
16 | targetAudience: string;
|
17 | idTokenProvider: IdTokenProvider;
|
18 | |
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | constructor(options: IdTokenOptions);
|
25 | protected getRequestMetadataAsync(url?: string | null): Promise<RequestMetadataResponse>;
|
26 | private getIdTokenExpiryDate;
|
27 | }
|