diff --git a/server/auth/types/openid/openid_auth.test.ts b/server/auth/types/openid/openid_auth.test.ts index 4583d638c..480934dcc 100644 --- a/server/auth/types/openid/openid_auth.test.ts +++ b/server/auth/types/openid/openid_auth.test.ts @@ -242,7 +242,8 @@ describe('test OpenId authHeaderValue', () => { authType: 'openid', }; - expect(await openIdAuthentication.isValidCookie(testCookie, {})).toBe(true); + // As ID token is expired and no refresh token value is passed, it will return false + expect(await openIdAuthentication.isValidCookie(testCookie, {})).toBe(false); global.Date.now = realDateNow; });