diff --git a/authenticate/authenticate.go b/authenticate/authenticate.go index 3467be92c..a2d09ee76 100644 --- a/authenticate/authenticate.go +++ b/authenticate/authenticate.go @@ -51,6 +51,8 @@ func New(cfg *config.Config, options ...Option) (*Authenticate, error) { state: atomicutil.NewValue(newAuthenticateState()), } + a.options.Store(cfg.Options) + state, err := newAuthenticateStateFromConfig(cfg) if err != nil { return nil, err