aboutsummaryrefslogtreecommitdiffstats
path: root/lib/register.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/register.ts')
-rw-r--r--lib/register.ts6
1 files changed, 4 insertions, 2 deletions
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,