fix: wire lingxing auth components for spring

This commit is contained in:
2026-09-21 22:12:37 +08:00
parent 03374c83f6
commit 8d66610964
3 changed files with 6 additions and 2 deletions
@@ -47,8 +47,8 @@ class LingxingAuthManagerTest {
@Test
void jwtExpiryUsesSafetyWindow() {
String token = "eyJhbGciOiJub25lIn0.eyJleHAiOjE3OTAwMDAwMDB9.signature";
long expected = 1790000000000L - 300_000L;
String token = "eyJhbGciOiJub25lIn0.eyJleHAiOjE4OTAwMDAwMDB9.signature";
long expected = 1890000000000L - 300_000L;
assertThat(LingxingBrowserSessionReader.expiresAt(token, config)).isEqualTo(expected);
}
}