fix: wire lingxing auth components for spring
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user