Skip to content

Commit

Permalink
Merge branch 'alankar-main' into oidc-refresh-token-test
Browse files Browse the repository at this point in the history
  • Loading branch information
cwperks committed Jun 10, 2024
2 parents 5f4d2b7 + d6c989f commit 89961e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/auth/types/openid/openid_auth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});

Expand Down

0 comments on commit 89961e7

Please sign in to comment.