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

Auth token renewal #385

Open
vincentgiraud opened this issue Feb 14, 2024 · 1 comment
Open

Auth token renewal #385

vincentgiraud opened this issue Feb 14, 2024 · 1 comment

Comments

@vincentgiraud
Copy link

Is your feature request related to a problem? Please describe.
Once the oauth token expired, an "unauthenticated" grpc exception will be raised: "Failed to parse bearer token, see cause for details"

Describe the solution you'd like
I'd like a coroutine (or else) to renew the token with or without recreating the channel hence the worker.

Describe alternatives you've considered
Catching the exception and calling again the main function

@dimastbk
Copy link
Collaborator

For inspiration: https://github.com/googleapis/google-auth-library-python/blob/32ed6015ea71f9dd1a594b3caa88fd328f56b0b7/google/auth/transport/grpc.py#L37

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

No branches or pull requests

2 participants