mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 11:58:13 +00:00
fix: set ky credentials to undefined
Ensures cf workers compat
This commit is contained in:
parent
597d3f1960
commit
5826faff19
3 changed files with 3 additions and 0 deletions
|
|
@ -69,6 +69,7 @@ export class ClasschartsClient {
|
|||
Authorization: "Basic " + this.sessionId,
|
||||
...kyOptions.headers,
|
||||
},
|
||||
credentials: undefined,
|
||||
} satisfies KyOptions;
|
||||
if (options?.revalidateToken === true && this.lastPing) {
|
||||
if (Date.now() - this.lastPing + 5000 > PING_INTERVAL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue