Add IAM scaffold modules
This commit is contained in:
18
iam/internal/service/iam.go
Normal file
18
iam/internal/service/iam.go
Normal 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(),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user