feat: fetch user info using OAuth
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user