fix(auth): refresh cached tokens without expiry - #909
Conversation
🦋 Changeset detectedLatest commit: b7ac01b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
The individual CLA check now passes, and the branch remains mergeable. CI, Coverage, Policy, Release, and the Actions security scan are still in |
|
This PR has been inactive for 72 hours. Closing to keep the queue clean. |
|
This PR was closed because it has been stalled for 72 hours. Feel free to magically reopen it if you want to continue working on it! |
Description
Closes #904.
Encrypted token storage now treats a cached token with no expiration time as a cache miss. This lets the OAuth authenticator obtain a fresh token instead of reusing the same access token indefinitely and producing permanent per-scope 401 responses.
Cached tokens with a known expiration time continue through the existing yup-oauth2 freshness and refresh logic unchanged.
Dry Run Output: Not applicable; this changes local OAuth token-cache behavior and does not create a Discovery API request.
Validation
Checklist: