Open dwatrous opened 1 year ago
or at least I can't figure out if this is supposed to be a way to refresh the token
Unfortunately, I'm not sure either. That part of the code was taken from Pyrebase.
I ended up moving to https://github.com/JelleZijlstra/aiohttp-sse-client2. That still doesn't support automatic refresh of the token, so I run in a loop that watches for the SSE "auth_revoked" and then I get a fresh token and start a new listener.
Maybe in future me or someone from the open source will figure it out. Until then, I'm glad you found a work through for your project and mentioning it here for future solution seekers.
Is there an existing issue for this?
Environment
What happened?
When the idtoken expires, I'm required to kill my script and open a start it again to get a new token and create a new stream.
Code Snippet
Relevant log output
Anything else?