Doubt about long-lived access tokens

According to the documentation, a long-lived access token is valid for 10 years. Currently, I have Node-RED running in a LXC container on Proxmox, which uses an long-lived access token and node-red-contrib-home-assistant-websocket to communicate with Home Assistant.
Does this mean that after 10 years Node-RED would stop working?


Node red would still work. It would not be able to connect to home assistant to execute automations or send/retrieve values.

Is there a way to renew the token from code without having to generate a new one manually from Home Assistant?

You also do not need to wait the ten years to replace it. You can do it right now and reset the clock to 10 years.