mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 12:27:43 +00:00
13 lines
286 B
TypeScript
13 lines
286 B
TypeScript
import express from "express";
|
|
import { toNodeHandler } from "better-auth/node";
|
|
import { auth } from "./auth";
|
|
|
|
const app = express();
|
|
const port = 3005;
|
|
|
|
app.get("/api/auth/*", toNodeHandler(auth));
|
|
|
|
app.listen(port, () => {
|
|
console.log(`Example app listening on port ${port}`);
|
|
});
|