Blynk arduino uno Rev 2 wifi invalid auth token

Just getting started with Blynk and Arduino Uno Rev 2 WiFi and receiving the “invalid auth token” in the serial monitor.
Using IDE 2 and Blynk 1.1.0

Hoping that you may be able tlo suggest a solution that I can try, please.

  Download latest Blynk library here:

  Blynk is a platform with iOS and Android apps to control
  Arduino, Raspberry Pi and the likes over the Internet.
  You can easily build graphic interfaces for all your
  projects by simply dragging and dropping widgets.

    Downloads, docs, tutorials:
    Sketch generator: 
    Blynk community:  
    Follow us:        

  Blynk library is licensed under MIT license
  This example code is in public domain.

  This example shows how to use Arduino MKR 1010
  to connect your project to Blynk.

  Note: This requires WiFiNINA library
    from http://librarymanager/all#WiFiNINA

  Feel free to apply it to any other example. It's simple!
/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial
#define BLYNK_DEVICE_NAME "Arduino"

/* Fill-in your Template ID (only if using Blynk.Cloud) */
//#define BLYNK_TEMPLATE_ID   "YourTemplateID"

#include <SPI.h>
#include <WiFiNINA.h>
#include <BlynkSimpleWiFiNINA.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YOUR_AUTH_TOKEN";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid [] = "xxxxxxxxxx";
char pass [] = "xxxxxxxxxx";

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,1,100), 8080);

void loop()

Message (Enter to send message to 'Arduino Uno WiFi Rev2' on 'COM4')
No Line Ending
9600 baud
11:52:39.197 -> [759] Connecting to Tenrings
11:52:40.908 -> [2505] IP:
11:52:40.940 -> [2506] 
11:52:40.940 ->     ___  __          __
11:52:40.972 ->    / _ )/ /_ _____  / /__
11:52:41.004 ->   / _  / / // / _ \/  '_/
11:52:41.004 ->  /____/_/\_, /_//_/_/\_\
11:52:41.037 ->         /___/ v1.1.0 on Arduino UNO WiFi Rev2
11:52:41.101 -> 
11:52:41.101 ->  #StandWithUkraine

11:53:17.081 -> [38903] Invalid auth token
11:53:34.769 -> [56682] Connecting to
11:53:35.078 -> [56913] Invalid auth token
11:53:52.699 -> [74682] Connecting to
11:53:52.731 -> [74744] Invalid auth token

Sharing the text from the serial monitor would be a good start.
Also, making these three lines the very first slimes of your sketch is also a very good idea…

I assume that these lines of code were copied and pasted from the device info screen rather than being re-typed?


Morning Pete,
Thanks for the speedy reply. Yes, you are correct in that I copied and pasted all of the code and the information from the serial monitor into the submission. I believe that if you scroll down on my post, it should show the serial monitor info.
I did not include the first few lines as these are all the information lines and I did not know if they would be of any help, but I will go back into the sketch and add these.
I have now added the ommited lines.