Skip to content

Commit

Permalink
initialize challenge now that it has moved 2 login
Browse files Browse the repository at this point in the history
  • Loading branch information
foomoon committed Dec 16, 2023
1 parent 3d3c07d commit fdeacca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dist/lib/light.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export class Light {
this.ipaddr = ipaddr;
// this.challenge = randomBytes(256).toString("hex");
// this.challenge = generateRandomHex(256);
this.challenge = ""; // default value, will be set in login()
this.net = axios.create({
baseURL: `http://${this.ipaddr}/xled/v1/`,
timeout: timeout,
Expand Down

0 comments on commit fdeacca

Please sign in to comment.