From eb553fdaf242c623837ada8ea479d20a7ec1c985 Mon Sep 17 00:00:00 2001 From: phil Date: Fri, 11 Jul 2025 14:42:40 -0400 Subject: [PATCH] fix account restriction --- server/index.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/server/index.js b/server/index.js index b42db09..8a709c5 100755 --- a/server/index.js +++ b/server/index.js @@ -188,11 +188,12 @@ const getAccountCookie = (req, res, appSecret, adminDid) => { // not yet public!! if (!did || did !== adminDid) { - res.setHeader('Content-Type', 'application/json'); - res.writeHead(403); - clearAccountCookie(res).end(JSON.stringify({ - reason: 'the spacedust notifications demo isn\'t public yet!', - })); + clearAccountCookie(res) + .setHeader('Content-Type', 'application/json') + .writeHead(403) + .end(JSON.stringify({ + reason: 'the spacedust notifications demo isn\'t public yet!', + })); throw new Error('unauthorized'); } -- 2.51.2