have you read this?
https://bbs.espressif.com/viewtopic.php?f=49&t=874&p=35803&hilit=auth_expire#p35803
Try to add a Wifi.disconnect() and than do Wfi.connect() when you get disconnected
@MaBe started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
have you read this?
https://bbs.espressif.com/viewtopic.php?f=49&t=874&p=35803&hilit=auth_expire#p35803
Try to add a Wifi.disconnect() and than do Wfi.connect() when you get disconnected