Updated today at 08:58

Commit: 14137dc Show on GitHub

  • Author: Alex
  • Date: 2/18/2026, 10:19:08 AM
  • Message: refactor: extract auth logic into AuthService. Adds caching of userdata. - Add AuthService static class with in-memory cache (5 min TTL) - Move token validation, user fetching, and session refresh into AuthService - Schedule cache pruning via setInterval every 10 minutes - Simplify hooks.server.js to delegate entirely to AuthService Issue #313
  • Stats: 120 total changes (+82 / -38)

Changed Files

  • src/hooks.server.js — +11 / -38 (49 changes)
  • src/lib/server/authService.js — +71 / -0 (71 changes)