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: implement token refresh #4

Merged
merged 1 commit into from
Mar 17, 2022
Merged

feat: implement token refresh #4

merged 1 commit into from
Mar 17, 2022

Conversation

efirs
Copy link
Collaborator

@efirs efirs commented Mar 16, 2022

No description provided.

@efirs efirs force-pushed the toke_auth branch 3 times, most recently from 5472e8f to 8b98454 Compare March 16, 2022 20:47
@efirs efirs changed the title Implement token refresh feat: implement token refresh Mar 17, 2022
func getAuthToken(config *Config) *oauth2.Token {
token := config.Token
if os.Getenv(TOKEN_ENV) != "" {
token = os.Getenv(TOKEN_ENV)
Copy link
Contributor

Choose a reason for hiding this comment

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

I understand the intent here is to provide convenience to the user. However this can become the source of confusion/bug at the large scale consumption. It is good idea to keep magic out as much as possible.

@efirs efirs merged commit 58c9eef into main Mar 17, 2022
@efirs efirs deleted the toke_auth branch March 17, 2022 22:37
@github-actions
Copy link

🎉 This PR is included in version 1.0.0-alpha.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This PR is included in version 1.0.0-alpha.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This PR is included in version 1.0.0-beta.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions
Copy link

github-actions bot commented May 9, 2023

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants