|
|
@ -184,11 +184,11 @@ func ParseToken(tokensString, operationID string) (claims *Claims, err error) {
|
|
|
|
errMsg := "GetClaimFromToken failed ErrTokenUnknown " + err.Error()
|
|
|
|
errMsg := "GetClaimFromToken failed ErrTokenUnknown " + err.Error()
|
|
|
|
log.Error(operationID, errMsg)
|
|
|
|
log.Error(operationID, errMsg)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
info := err.(constant.ErrInfo)
|
|
|
|
//info := err.(constant.ErrInfo)
|
|
|
|
if info == constant.ErrTokenUnknown {
|
|
|
|
//if info == constant.ErrTokenUnknown {
|
|
|
|
errMsg := "info == constant.ErrTokenUnknown " + err.Error()
|
|
|
|
// errMsg := "info == constant.ErrTokenUnknown " + err.Error()
|
|
|
|
log.Error(operationID, errMsg)
|
|
|
|
// log.Error(operationID, errMsg)
|
|
|
|
}
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
e := errors.Unwrap(err)
|
|
|
|
e := errors.Unwrap(err)
|
|
|
|
if errors.Is(e, constant.ErrTokenUnknown) {
|
|
|
|
if errors.Is(e, constant.ErrTokenUnknown) {
|
|
|
|