Adding user id to first response
This commit is contained in:
parent
cf61785ec0
commit
47e0cd342e
|
@ -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,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue