Skip to content

Commit

Permalink
fix(tsc): audience property is not mandatory on verifyIdToken (#972)
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin E. Coe <bencoe@google.com>
Co-authored-by: Justin Beckwith <justin.beckwith@gmail.com>
  • Loading branch information
3 people committed Jun 16, 2020
1 parent 9ddfb9b commit 17a7e24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/auth/oauth2client.ts
Expand Up @@ -384,7 +384,7 @@ export interface RevokeCredentialsResult {

export interface VerifyIdTokenOptions {
idToken: string;
audience: string | string[];
audience?: string | string[];
maxExpiry?: number;
}

Expand Down Expand Up @@ -1174,7 +1174,7 @@ export class OAuth2Client extends AuthClient {
async verifySignedJwtWithCertsAsync(
jwt: string,
certs: Certificates | PublicKeys,
requiredAudience: string | string[],
requiredAudience?: string | string[],
issuers?: string[],
maxExpiry?: number
) {
Expand Down

0 comments on commit 17a7e24

Please sign in to comment.