1
0
Fork 0
mirror of https://github.com/classchartsapi/classcharts-api-js.git synced 2026-05-14 19:59:37 +00:00
Commit graph

15 commits

Author SHA1 Message Date
Ada
482ec99817 fix: get all Set-Cookie headers and strip attributes
ClassCharts returns two cookies on login:
- cc-session
- parent_session_credentials

Two bugs were fixed:

1. response.headers.get('set-cookie') only returns the first cookie
   Fix: use getSetCookie() to get ALL Set-Cookie headers

2. authCookies was storing full Set-Cookie header values (with path,
   HttpOnly, Secure attributes) which breaks the Cookie header
   Fix: extract only name=value portion: h.split(';')[0].trim()

3. Cookie header join used ';' instead of '; ' (missing space)
   Fix: use '; ' as per RFC 7230
2026-03-13 22:05:08 +00:00
James Cook
6d0942afe4 docs: improve code documentation 2024-05-28 14:07:34 +01:00
James Cook
a64fd6a718 chore: syntax & biome.js changes 2024-01-10 10:57:33 +00:00
James Cook
ac5569f53e
feat: Use biomejs for formatting & linting (#42) 2023-11-29 00:03:56 +00:00
Isaac Hatton
118c384131
feat: add changePassword parent method (#40) 2023-10-08 21:02:01 +01:00
James Cook
b2af13c315 fix: remove import map
Doesn't work with importing in deno
2023-09-24 13:36:35 +01:00
Isaac Hatton
8a11040524
feat: parent client tests & consistant error messages (#37) 2023-09-17 17:19:48 +01:00
James Cook
a022c8a8ad chore: move deno dev deps to deps file && use import map 2023-09-16 20:14:18 +01:00
James Cook
dea1a00f13
fix: Parent client Login (#36) 2023-09-16 19:52:03 +01:00
James Cook
ffe3e24bbd fix: use .has instead of .get 2023-09-10 13:02:05 +01:00
James Cook
70c9d623fc chore: deno badge & formatting 2023-08-30 13:43:25 +01:00
James Cook
f86ded2ae3
feat: denoify (#33) 2023-08-30 12:28:49 +01:00
James Cook
6552c282d5 feat: use native fetch 2023-05-30 18:37:24 +01:00
James Cook
00e3a13821 chore: typo fixes + config files 2023-05-14 00:59:21 +01:00
James Cook
e91fb1688d feat: restructure src/ 2023-04-16 21:06:10 +01:00
Renamed from src/parentClient.ts (Browse further)