diff options
Diffstat (limited to 'src/hooks.ts')
-rw-r--r-- | src/hooks.ts | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/hooks.ts b/src/hooks.ts index ac53658..64c1b9d 100644 --- a/src/hooks.ts +++ b/src/hooks.ts @@ -7,25 +7,11 @@ if (!SKYBLOCK_STATS_API_KEY) export const handle: Handle = async ({ event, resolve }) => { const cookies = cookie.parse(event.request.headers.get('cookie') || '') - // event.locals.userid = cookies.userid || uuid(); - console.log(cookies) event.locals.sid = cookies.sid const response = await resolve(event) - // if (!cookies.userid) { - // // if this is the first time the user has visited this app, - // // set a cookie so that we recognise them when they return - // response.headers.set( - // 'set-cookie', - // cookie.serialize('userid', event.locals.userid, { - // path: '/', - // httpOnly: true - // }) - // ); - // } - return response } |