Adding user id to first response

This commit is contained in:
Eric van der Vlist 2023-03-04 09:50:13 +01:00
parent cf61785ec0
commit 47e0cd342e
1 changed files with 6 additions and 1 deletions

View File

@ -56,5 +56,10 @@ export async function GET({ params }: APIEvent) {
credentials credentials
); );
return json({ params, status: 'OK', mail: obfuscateMail(user.mail) }); return json({
params,
status: 'OK',
mail: obfuscateMail(user.mail),
id: user._id,
});
} }