This commit is contained in:
asyncnomi 2022-12-21 23:37:53 +01:00
parent fb9b4757e1
commit 1829515873

View file

@ -70,7 +70,8 @@ fastify.post('/login', async (request, reply) => {
success: true,
user: {
uid: res.authUser.uid,
givenName: res.authUser.givenName
givenName: res.authUser.givenName,
isAdmin: AdminUsersUid.contains(res.authUser.uid)
},
token: UsersToken[res.authUser.uid].token
}