chore: update auth-service to not be class based

This commit is contained in:
Aarnav Tale
2026-04-03 16:57:39 -04:00
parent 003985d192
commit 4b47b1bbed
3 changed files with 191 additions and 239 deletions
+1 -7
View File
@@ -164,13 +164,7 @@ export default createHonoServer({
},
});
// Prune expired auth sessions every 15 minutes
setInterval(
() => {
appLoadContext.auth.pruneExpiredSessions();
},
15 * 60 * 1000,
);
appLoadContext.auth.start();
process.on("SIGINT", () => {
log.info("server", "Received SIGINT, shutting down...");