Skip to content

Commit

Permalink
move challenge gen to login()
Browse files Browse the repository at this point in the history
  • Loading branch information
foomoon committed Dec 15, 2023
1 parent 6fe59fe commit 39bf5b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 39bf5b6

Please sign in to comment.