Add IAM scaffold modules

This commit is contained in:
2026-02-03 10:05:53 +08:00
parent bc69ad4e33
commit 66e438978e
21 changed files with 156 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package service
import (
"todo-vibe-coding/iam/internal/auth/jwt"
"todo-vibe-coding/iam/internal/repo"
)
type IAM struct {
tokens *jwt.Manager
users repo.UserStore
}
func NewIAM() *IAM {
return &IAM{
tokens: jwt.NewManager("dev-secret"),
users: repo.NewInMemoryUserStore(),
}
}