-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add JWT.getCredentials method #323
Conversation
Codecov Report
@@ Coverage Diff @@
## master #323 +/- ##
==========================================
- Coverage 94.66% 94.51% -0.16%
==========================================
Files 14 14
Lines 900 911 +11
Branches 187 187
==========================================
+ Hits 852 861 +9
- Misses 48 50 +2
Continue to review full report at Codecov.
|
src/auth/jwtclient.ts
Outdated
@@ -168,6 +168,20 @@ export class JWT extends OAuth2Client { | |||
* @private | |||
*/ | |||
async refreshToken(refreshToken?: string|null): Promise<GetTokenResponse> { | |||
this.createGToken(); | |||
const token = await this.gtoken!.getToken(); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
src/auth/jwtclient.ts
Outdated
* Using the key or keyFile on the JWT client, obtain an object that contains | ||
* the key and the client email. | ||
*/ | ||
async getCredentials() { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Resolves #313