This commit is contained in:
stratumadev 2025-05-11 19:12:57 +02:00
parent 7583f0ef11
commit 9df2488683

View file

@ -269,7 +269,7 @@ export default class Crunchy implements ServiceClass {
}
// To prevent any Cloudflare errors in the future
if (authReq.res.headers.get('Set-Cookie')) {
api.crunchyDefHeader['Cookie'] = authReq.res.headers.get('Set-Cookie') as string
api.crunchyDefHeader['Cookie'] = authReq.res.headers.get('Set-Cookie') as string;
}
this.token = await authReq.res.json();
this.token.device_id = uuid;
@ -301,7 +301,7 @@ export default class Crunchy implements ServiceClass {
}
// To prevent any Cloudflare errors in the future
if (authReq.res.headers.get('Set-Cookie')) {
api.crunchyDefHeader['Cookie'] = authReq.res.headers.get('Set-Cookie') as string
api.crunchyDefHeader['Cookie'] = authReq.res.headers.get('Set-Cookie') as string;
}
this.token = await authReq.res.json();
this.token.device_id = uuid;
@ -365,7 +365,7 @@ export default class Crunchy implements ServiceClass {
}
// To prevent any Cloudflare errors in the future
if (authReq.res.headers.get('Set-Cookie')) {
api.crunchyDefHeader['Cookie'] = authReq.res.headers.get('Set-Cookie') as string
api.crunchyDefHeader['Cookie'] = authReq.res.headers.get('Set-Cookie') as string;
}
this.token = await authReq.res.json();
this.token.device_id = uuid;
@ -411,7 +411,7 @@ export default class Crunchy implements ServiceClass {
}
// To prevent any Cloudflare errors in the future
if (authReq.res.headers.get('Set-Cookie')) {
api.crunchyDefHeader['Cookie'] = authReq.res.headers.get('Set-Cookie') as string
api.crunchyDefHeader['Cookie'] = authReq.res.headers.get('Set-Cookie') as string;
}
this.token = await authReq.res.json();
this.token.device_id = uuid;