From e5167b7a5558e23c4a871279a2ebbf73f660c452 Mon Sep 17 00:00:00 2001 From: rca Date: Tue, 18 Jun 2024 02:47:50 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AD=E3=82=B0=E3=82=A4=E3=83=B3=E5=81=B4?= =?UTF-8?q?=E3=82=82=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routers/parent/authRouter.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/routers/parent/authRouter.ts b/src/routers/parent/authRouter.ts index 047d069..c8dec77 100644 --- a/src/routers/parent/authRouter.ts +++ b/src/routers/parent/authRouter.ts @@ -26,7 +26,9 @@ router.post('/login', (req: Request, res: Response) => { loginUser(email, password) .then((token) => { if (token) { - res.json({ token }); + res.json({ + "accessToken": token + }); } else { res.status(401).json({ message: "ログイン失敗: emailかpasswordが間違っています" }); logger.warn("Login failed");