pull/232/head
wenxu12345 3 years ago
parent 98d5f5ee3e
commit c234e2ca3d

@ -135,8 +135,9 @@ func GetUserIDFromToken(token string, operationID string) (bool, string, string)
log.Error(operationID, "ParseToken failed, ", err.Error(), token)
return false, "", err.Error()
}
log.Debug(operationID, "token claims.ExpiresAt.Second() ", claims.ExpiresAt.Second())
log.Debug(operationID, "token claims.ExpiresAt.Second() ", claims.ExpiresAt.Unix())
return true, claims.UID, ""
}
func ParseTokenGetUserID(token string, operationID string) (error, string) {

Loading…
Cancel
Save