mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
Handling token exceptions
This commit is contained in:
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…
x
Reference in New Issue
Block a user