feat(auth): add session login, logout and bearer middleware

This commit is contained in:
kk10
2026-10-05 11:54:36 +03:00
parent b94e7813ee
commit a8525778a3
10 changed files with 268 additions and 37 deletions
+2
View File
@@ -43,6 +43,7 @@ func Run() error {
queries := db.New(pool)
memory := store.New()
authService := service.NewAuthService(queries, cfg.Server.SessionTTL)
userService := service.NewUserService(queries)
chatService := service.NewChatService(memory)
messageService := service.NewMessageService(memory)
@@ -51,6 +52,7 @@ func Run() error {
log,
cfg.Server.MaxInflightRequests,
pool,
authService,
userService,
chatService,
messageService,