store authenticate state on creation (#4064)

This commit is contained in:
Denis Mishin 2023-03-17 18:25:29 -04:00 committed by GitHub
parent 438039d846
commit 6e39ebc189
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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