fix: ensure signer has key on OP creation

This commit is contained in:
Livio Amstutz 2022-01-31 07:27:52 +01:00
parent 219ba4e038
commit e39146c98e
2 changed files with 24 additions and 14 deletions

View file

@ -125,8 +125,8 @@ func NewOpenIDProvider(ctx context.Context, config *Config, storage Storage, opO
}
keyCh := make(chan jose.SigningKey)
o.signer = NewSigner(ctx, storage, keyCh)
go storage.GetSigningKey(ctx, keyCh)
o.signer = NewSigner(ctx, storage, keyCh)
o.httpHandler = CreateRouter(o, o.interceptors...)