diff --git a/jwtverifier.go b/jwtverifier.go index 1a359c2..23d3209 100644 --- a/jwtverifier.go +++ b/jwtverifier.go @@ -268,7 +268,7 @@ func (j *JwtVerifier) validateClientId(clientId interface{}) error { switch v := clientId.(type) { case string: if v != cid { - return fmt.Errorf("aud: %s does not match %s", v, cid) + return fmt.Errorf("cid: %s does not match %s", v, cid) } case []string: for _, element := range v { @@ -276,7 +276,7 @@ func (j *JwtVerifier) validateClientId(clientId interface{}) error { return nil } } - return fmt.Errorf("aud: %s does not match %s", v, cid) + return fmt.Errorf("cid: %s does not match %s", v, cid) default: return fmt.Errorf("unknown type for clientId validation") }