Invalid auth token too

Hi All

I would like to have your help because I do not understand where my problem is with my code. I always have this Invalid auth token error message.
Could you guide me?
I Had already test my token and i’ts works !
thank you all

My Code:

      This sketch shows how to write values to Virtual Pins
      BlynkTimer provides SimpleTimer functionality:
      App project setup:
        Value Display widget attached to Virtual Pin V5
    // Template ID, Device Name and Auth Token are provided by the Blynk.Cloud
    // See the Device Info tab, or Template settings
    #define BLYNK_TEMPLATE_ID           "TMPLCK0iTFzn"
    #define BLYNK_DEVICE_NAME           "phy"
    #define BLYNK_AUTH_TOKEN            "Lbp1kDGsYcbwVhlR3KFCUFHoTBexs1VS"
    // Comment this out to disable prints and save space
    #define BLYNK_PRINT Serial
    #include <ESP8266WiFi.h>
    #include <BlynkSimpleEsp8266.h>
    char auth[] = BLYNK_AUTH_TOKEN;
    // Your WiFi credentials.
    // Set password to "" for open networks.
    char ssid[] = "wifi***";
    char pass[] = "******";
    BlynkTimer timer;
    // This function sends Arduino's up time every second to Virtual Pin (5).
    // In the app, Widget's reading frequency should be set to PUSH. This means
    // that you define how often to send data to Blynk App.
    void myTimerEvent()
      // You can send any value at any time.
      // Please don't send more that 10 values per second.
      Blynk.virtualWrite(V5, millis() / 1000);
    void setup()
      // Debug console
      Blynk.begin(auth, ssid, pass);
      // You can also specify server:
      //Blynk.begin(auth, ssid, pass, "", 80);
      //Blynk.begin(auth, ssid, pass, IPAddress(192,168,,100), 8080);
      // Setup a function to be called every second
      timer.setInterval(1000L, myTimerEvent);
    void loop()
    {;; // Initiates BlynkTimer

You are using a Blynk Legacy token, but these two lines force a connection to the Blynk IoT servers.

Why do you have a template ID with Blynk Legacy?


indeed it works much better.
I did not understand the difference, thank you