fix(auth): wiring Auth/Sessions, нормализация email, GetUserByID для /me, 409 на дубль, timing-guard логина

This commit is contained in:
vasyansk committed 2026-07-03 20:29:05 +07:00
1 parent aa0ef1c6a9
commit 35ffe73ae3
8 files changed
+265 -10

No files matched your search

+1
View File
@@ -61,6 +61,7 @@ type ProviderRegistry interface {
type AuthStore interface {
RegisterUser(ctx context.Context, email, passwordHash string) (store.User, store.Project, error)
GetUserByEmail(ctx context.Context, email string) (store.User, error)
GetUserByID(ctx context.Context, userID uuid.UUID) (store.User, error)
GetUserProject(ctx context.Context, userID uuid.UUID) (store.Project, error)
}