From 1888e338f2ccef16ccdb738cfdd04ffe516e023a Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 13 Feb 2025 10:18:04 -0800 Subject: add uid to default app --- lib/register.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/register.ts') diff --git a/lib/register.ts b/lib/register.ts index 90cfe060..1493211c 100644 --- a/lib/register.ts +++ b/lib/register.ts @@ -70,10 +70,12 @@ export default async (user, ip) => { name: "Spending", }); - const secret = bytesToHex(randomBytes(32)); + const bytes = randomBytes(32); + const secret = bytesToHex(bytes); const app = { + uid: id, secret, - pubkey: getPublicKey(secret), + pubkey: getPublicKey(bytes), max_amount: 10000, budget_renewal: "weekly", name: username, -- cgit v1.2.3