Commit 5ce46c8
committed
fix: stop re-exchanging token when expiry is zero
A token with no expiry should be treated as valid indefinitely.
The previous loop re-fetched a new token every 5 seconds instead
of blocking until context cancellation.1 parent efca378 commit 5ce46c8
1 file changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
199 | 196 | | |
200 | 197 | | |
201 | 198 | | |
| |||
0 commit comments