diff --git a/test/frontendIntegration/main.go b/test/frontendIntegration/main.go index 8c6085f7..f8db483a 100644 --- a/test/frontendIntegration/main.go +++ b/test/frontendIntegration/main.go @@ -567,11 +567,11 @@ func login218(response http.ResponseWriter, request *http.Request) { legacyAccessToken := sessionResp.AccessToken.Token legacyRefreshToken := sessionResp.RefreshToken.Token - frontTokenJson := json.NewEncoder(response).Encode(map[string]interface{}{ + frontTokenJson := map[string]interface{}{ "uid": userID, "ate": session.GetCurrTimeInMS() + 3600000, "up": payload, - }) + } parsed, _ := json.Marshal(frontTokenJson) data := []byte(parsed)