hydra-webauthn/internal/storage/provider.go

16 lines
262 B
Go
Raw Normal View History

2023-11-15 20:38:25 +01:00
package storage
import (
"gitlab.com/wpetit/goweb/service"
)
func ServiceProvider(userRepo UserRepository) service.Provider {
srv := &Service{
userRepository: userRepo,
}
return func(ctn *service.Container) (interface{}, error) {
return srv, nil
}
}