Decrease oauth2 token refresh grace period

Signed-off-by: Jessica He <jhe@redhat.com>
This commit is contained in:
Jessica He
2024-11-21 17:25:27 -05:00
parent 4e103eb8bf
commit 28306899ed
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-app-api': patch
---
Decrease OAuth2 token refresh grace period
@@ -148,7 +148,7 @@ export default class OAuth2
(session.backstageIdentity.expiresAt.getTime() - Date.now()) / 1000,
);
}
return min < 60 * 5;
return min < 60 * 3;
},
});