mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-25 11:06:43 +08:00
Handling token exceptions
This commit is contained in:
parent
910876f323
commit
9337d150b9
@ -254,7 +254,7 @@ func VerifyToken(token, uid string) (bool, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func WsVerifyToken(token, uid string, platformID string, operationID string) (bool, error, string) {
|
func WsVerifyToken(token, uid string, platformID string, operationID string) (bool, error, string) {
|
||||||
argMsg := "token: " + token + " operationID: " + operationID + " userID: " + uid + " platformID: " + constant.PlatformIDToName(utils.StringToInt(platformID)
|
argMsg := "token: " + token + " operationID: " + operationID + " userID: " + uid + " platformID: " + constant.PlatformIDToName(utils.StringToInt(platformID))
|
||||||
claims, err := ParseToken(token, operationID)
|
claims, err := ParseToken(token, operationID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
//if errors.Is(err, constant.ErrTokenUnknown) {
|
//if errors.Is(err, constant.ErrTokenUnknown) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user