feat: fetch user info using OAuth

This commit is contained in:
2023-01-10 01:22:06 +01:00
parent 3d149e0d1c
commit d279e1468b
5 changed files with 57 additions and 5 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ export async function createApiRouter() {
})
r.post('/api/login', async (req, res) => {
const { id } = req.body
const { id, name } = req.body
const user = await getUser(db, id)
if (!user) {