mirror of
https://github.com/Yonle/bostr.git
synced 2025-10-09 16:12:48 +02:00
cli: fix error due to non-updated auth.js
Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
2
auth.js
2
auth.js
@@ -1,5 +1,5 @@
|
||||
const { validateEvent, verifyEvent } = require("nostr-tools");
|
||||
const { authorized_keys, private_keys } = require("./config");
|
||||
const { authorized_keys, private_keys } = require(process.env.BOSTR_CONFIG_PATH || "./config");
|
||||
|
||||
module.exports = (authKey, data, ws, req) => {
|
||||
if (!validateEvent(data) || !verifyEvent(data)) {
|
||||
|
Reference in New Issue
Block a user