From 47e0cd342e4a9bfd0b9c3987c29c63796842c5a0 Mon Sep 17 00:00:00 2001 From: Eric van der Vlist Date: Sat, 4 Mar 2023 09:50:13 +0100 Subject: [PATCH] Adding user id to first response --- src/routes/api/conf/[token]/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/routes/api/conf/[token]/index.ts b/src/routes/api/conf/[token]/index.ts index 86383c9..00bf463 100644 --- a/src/routes/api/conf/[token]/index.ts +++ b/src/routes/api/conf/[token]/index.ts @@ -56,5 +56,10 @@ export async function GET({ params }: APIEvent) { credentials ); - return json({ params, status: 'OK', mail: obfuscateMail(user.mail) }); + return json({ + params, + status: 'OK', + mail: obfuscateMail(user.mail), + id: user._id, + }); }