Skip to content

Commit

Permalink
feat: Implement UserRefreshClient#fetchIdToken
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbankhead committed May 8, 2024
1 parent bb306ef commit ea3dcdc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/auth/refreshclient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ export class UserRefreshClient extends OAuth2Client {
return super.refreshTokenNoCache(this._refreshToken);
}

async fetchIdToken(): Promise<string> {
return (await this.refreshToken()).tokens.id_token!;
}

/**
* Create a UserRefreshClient credentials instance using the given input
* options.
Expand Down

0 comments on commit ea3dcdc

Please sign in to comment.