Inject Namespace into Context

This commit is contained in:
Ben Toogood
2020-04-14 09:14:07 +01:00
parent bf65dc71c7
commit d61d30ef66
5 changed files with 29 additions and 5 deletions

View File

@@ -18,9 +18,7 @@ import (
// NewAuth returns a new instance of the Auth service
func NewAuth(opts ...auth.Option) auth.Auth {
svc := new(svc)
svc.Init(opts...)
return svc
return &svc{options: auth.NewOptions(opts...)}
}
// svc is the service implementation of the Auth interface