update:auth checks

This commit is contained in:
2026-03-09 22:17:57 +09:00
parent 1f41741450
commit 3c28c117a0
6 changed files with 123 additions and 130 deletions

View File

@@ -79,7 +79,8 @@ export const authRouter: FastifyPluginAsync = async (fastify) => {
}
req.session.user = user;
reply.redirect(process.env.FRONTEND_URL ?? "http://localhost:5173");
const base = process.env.FRONTEND_URL ?? "http://localhost:5173";
reply.redirect(`${base}?login=1`);
},
);