© 2026 Hedgehog Software, LLC
export const authSigninRouter = new Hono(); const SigninForm = ({ email = '', errors }) => { return ( <form class="mt-5 grid gap-2 lg:gap-8" method="POST" action="/auth/signin"> <label class="grid w-full gap-3"> <span>Email address</span> <input type="email" name="email" /> </label> <label class="grid w-full gap-3"> <span>Password</span> <input type="password" name="password" /> </label> <button>Signin</button> </form> ); }; authSigninRouter.get('/', async (c) => { return c.render(<SigninForm />); }); authSigninRouter.post('/', async (c) => { const { email, password } = await c.req.parseBody(); ///... const token = await sign(tokenUser); setCookie(c, 'bearer_token', token, { secure: true, httpOnly: true }); return c.redirect('/'); });
TypeError: Request aborted, code: "ABORT_ERR"
const app = new Hono(); Bun.serve({ port: PORT, reload: true, fetch: app.fetch, }); app.use('*', serveStatic({ root: 'public/' })); app.route('/', appRouter);