Skip to content

build(auth): add token handler for GoogleToken.#805

Merged
miguelvelezsa merged 44 commits intomainfrom
feat-add-token-handler
Dec 3, 2025
Merged

build(auth): add token handler for GoogleToken.#805
miguelvelezsa merged 44 commits intomainfrom
feat-add-token-handler

Conversation

@miguelvelezsa
Copy link
Contributor

@miguelvelezsa miguelvelezsa commented Nov 14, 2025

Sixth PR for #841.

Add TokenHandler class, this class handle all the request to get a token and ensure not multiple request for it.
Original logic from gtoken: https://github.com/googleapis/node-gtoken/blob/main/esm/src/index.ts#L147C3-L247C4.

@miguelvelezsa miguelvelezsa requested a review from a team as a code owner November 14, 2025 23:39
@miguelvelezsa miguelvelezsa changed the base branch from main to feat-add-gettoken December 1, 2025 20:16
@miguelvelezsa miguelvelezsa changed the title feat: add token handler build(auth): add token handler for GoogleToken. Dec 1, 2025
Base automatically changed from feat-add-gettoken to main December 3, 2025 21:17
release-please bot and others added 7 commits December 3, 2025 21:33
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
…submit workflows (#828)

* build: remove wrong field in workflows

* build: use dorny/paths-filter in presubmit and continous workflows
Co-authored-by: miguel <miguelvelezsa@google.com>
renovate-bot and others added 18 commits December 3, 2025 21:33
* fix: upgrade rimraf dependency and move it to dev dependencies

* fix: move rimraf to dev dependency
* feat: add googleToken

* chore: create new file for tokenOptions

* chore(google-auth-library-nodejs): set types for TokenOptions.additionalClaims

* build: add copyright message

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: feywind <57276408+feywind@users.noreply.github.com>
* chore(deps): update dependency jsdoc-region-tag to v4 (#831)

* build: calculate changes instead of using external action (#834)

* chore: fix lint

* build: use temp dir in credentials test

* build: added error message in case of invalid json

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: feywind <57276408+feywind@users.noreply.github.com>
Co-authored-by: Mend Renovate <bot@renovateapp.com>
Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com>
* build: run interdependent tests

* build: run interdependent tests

* fix

* fix(ci): make run-interdependent-tests.sh safer

The script was failing when running in a directory that does not have a 'packages' subdirectory. This commit adds a check to ensure the directory exists before trying to list its contents.

* fix(deps): syncpack dependency versions

This commit fixes the dependency mismatches reported by syncpack.

* fix(ts): address type errors from @types/node update

This commit fixes the TypeScript errors that were introduced after updating the dependencies with syncpack. The errors were related to the new definition of Uint8Array in @types/node.

* ci(syncpack): automate fixing of mismatches

This commit updates the syncpack workflow to automatically fix dependency mismatches and commit the changes.

* Update package.json

* revert(ci): remove automated fix for syncpack

This reverts the previous commit that automated the fixing of syncpack mismatches.

* fix(deps): update dependencies to resolve syncpack mismatches

* fix(proto3-json-serializer): resolve Uint8Array and Buffer type issues

* run lint

* feat: add top-level lint-fix script

This commit adds a top-level lint-fix script that runs  in all packages. It also fixes an issue in  package that was causing the linting to fail.

* fix(lint): run gts fix on all packages

* chore: make sure we are actually installing packages locally

* remove the package-lock.json

* fix

* chore: fix

* retry

* chore: fix

* Update continuous.yaml

* run lint

* chore: fix nodejs runtime

* address comments

* remove numbers

* pin typescript dependency

---------

Co-authored-by: miguel <miguelvelezsa@google.com>
@miguelvelezsa miguelvelezsa merged commit 8f8b2a5 into main Dec 3, 2025
13 checks passed
@miguelvelezsa miguelvelezsa deleted the feat-add-token-handler branch December 3, 2025 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants