From 39bf5b63581cba6bd3b197914da75052a193de3d Mon Sep 17 00:00:00 2001 From: foomoon Date: Fri, 15 Dec 2023 08:18:36 -0600 Subject: [PATCH] move challenge gen to login() --- src/lib/light.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/light.ts b/src/lib/light.ts index d655db4..99d9126 100644 --- a/src/lib/light.ts +++ b/src/lib/light.ts @@ -97,6 +97,7 @@ export class Light { this.autoEndLoginCall(); let res: AxiosResponse; this.challenge = await generateRandomHex(256); + try { res = await this.net.post("/login", { challenge: this.challenge,