auth/services/selfsigned/validator.go
Method validator.verifyVP
has 56 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (v validator) verifyVP(vp vc.VerifiablePresentation, validAt *time.Time) (credentialSubject types.EmployeeIdentityCredentialSubject, proof vc.JSONWebSignature2020Proof, resultErr error) {
// #2428: NutsEmployeeCredential should be valid (signature), but does not need to be trusted.
vcs, err := v.vcr.Verifier().VerifyVP(vp, true, true, validAt)
if err != nil {
if errors.As(err, &verifier.VerificationError{}) {