diff --git a/pkg/op/op.go b/pkg/op/op.go index 5b8567a..c765a0c 100644 --- a/pkg/op/op.go +++ b/pkg/op/op.go @@ -166,6 +166,11 @@ func NewOpenIDProvider(ctx context.Context, config *Config, storage Storage, opO o.crypto = NewAESCrypto(config.CryptoKey) + // Avoid potential race conditions by calling these early + _ = o.AccessTokenVerifier() + _ = o.JWTProfileVerifier() + _ = o.openIDKeySet() + return o, nil }