Skip to content
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(sgartifactregistry): determine if access token is expired on npm auth #492

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

alethenorio
Copy link
Collaborator

When using gcloud auth print-access-token, gcloud will print the token
regardless on whether the token is expired or not.
We use gcloud to figure out if the token is expired for a better user
experience (instead of the user getting back a 403 which can be
confusing)

Copy link
Member

@Edholm Edholm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

… auth

When using `gcloud auth print-access-token`, gcloud will print the token
regardless on whether the token is expired or not.
We use gcloud to figure out if the token is expired for a better user
experience (instead of the user getting back a 403 which can be
confusing)
@alethenorio alethenorio merged commit 419fcdb into master Nov 22, 2023
3 checks passed
@alethenorio alethenorio deleted the check-token-expiry branch November 22, 2023 10:01
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.

3 participants