Skip to content

Commit

Permalink
fix(tsc): audience property is not mandatory on verifyIdToken
Browse files Browse the repository at this point in the history
  • Loading branch information
sergioregueira committed Jun 11, 2020
1 parent 6a39ae8 commit c30312a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/auth/oauth2client.ts
Original file line number Diff line number Diff line change
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 c30312a

Please sign in to comment.