Commit a7a8d7a
authored
feat: Modify the refresh window to match go/async-token-refresh. Serverless tokens are cached until 4 minutes before expiration, so 4 minutes is the ideal refresh window. (#1352)
* feat: Modify the refresh window to match go/async-token-refresh. Serverless tokens are cached until 4 minutes before expiration, so 4 minutes is the ideal refresh window. * Tweak time to 3 minutes and 45 seconds, giving the MDS a 15 second window to refresh. * Update both expiration margin and refresh margin.1 parent 5226e76 commit a7a8d7a
File tree
1 file changed
+2
-2
lines changed- oauth2_http/java/com/google/auth/oauth2
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
| 71 | + | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
0 commit comments