Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexagon committed Apr 12, 2022
1 parent c937d91 commit 4426511
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions db/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ const database = new JsonDB(new Config("myDataBase", true, false, '/'));
try {
var data = database.getData("/users");
} catch(error) {
// The error will tell you where the DataPath stopped. In this case test1
// Since /test1/test does't exist.
console.error("Created a new db");
console.log("Created a new db");
database.push("/users",{});
};

Expand Down
3 changes: 1 addition & 2 deletions utils/fido2.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ const
base64 = require("@hexagon/base64");

class Fido2 {
constructor(rpId, rpName, rpIcon, timeout) {
}
constructor() {}
async init(rpId, rpName, rpIcon, timeout) {
const { Webauthn } = await import("@hexagon/webauthn");
this.f2l = new Webauthn({
Expand Down

0 comments on commit 4426511

Please sign in to comment.