Related to auth token

I am not getting auth token for my project nodemcu esp8266

Go to devices/device info tab

If you’re using Edgent then you don’t need one - it’s allocated dynamically when you provision the device via the app.

If you aren’t using Edgent then you need to create a device from your template and it will then be in the location where @John93 has pointed out in the post above.

Don’t forget that these three lines of code need to go AT THE TOP of your sketch.