Handling token exceptions

pull/236/head
wenxu12345 3 years ago
parent f34fedd822
commit af152aa9b9

@ -8,7 +8,6 @@ import (
"Open_IM/pkg/utils"
go_redis "github.com/go-redis/redis/v8"
"github.com/golang-jwt/jwt/v4"
"reflect"
"time"
)
@ -192,7 +191,6 @@ func ParseToken(tokensString, operationID string) (claims *Claims, err error) {
// log.Error(operationID, errMsg)
//}
log.NewError(operationID, "token validate err", err.Error(), tokensString, "type ", reflect.TypeOf(err), "type2: ", reflect.TypeOf(e))
return nil, utils.Wrap(err, "")
}

Loading…
Cancel
Save