hydra-passwordless/internal/hydra/provider.go

16 lines
284 B
Go

package hydra
import (
"time"
"gitlab.com/wpetit/goweb/service"
)
func ServiceProvider(baseURL string, httpTimeout time.Duration) service.Provider {
client := NewClient(baseURL, httpTimeout)
return func(ctn *service.Container) (interface{}, error) {
return client, nil
}
}