mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-15 22:14:40 +00:00
fix(codex-auth): close remaining review gaps
This commit is contained in:
1 parent
08fe63c626
commit
5c79df4311
20 files changed
+823
-93
No files matched your search
@@ -133,4 +133,10 @@ describe('decodeIdToken', () => {
|
||||
expect(hasStructurallyValidIdToken(`${header}.${payload}$.${signature}`)).toBe(false);
|
||||
expect(hasStructurallyValidIdToken(`${header}=.${payload}.${signature}`)).toBe(false);
|
||||
});
|
||||
|
||||
it('rejects JWT segments with impossible base64url length', () => {
|
||||
const [header, payload] = buildToken({}).split('.');
|
||||
expect(hasStructurallyValidIdToken(`${header}.${payload}.a`)).toBe(false);
|
||||
expect(decodeIdToken(`${header}.${payload}.a`)).toEqual({});
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user