Working on site locally my session timed out so I got the “invalid token” on the page.
I sometimes get this when I am working in the admin area just working along ( JWA ). I find annoying and wanted to fix it.
I stumbled on the following link. Going to give a try.
https://www.ostraining.com/blog/joomla/invalid-token/
I hope this helps someone else out there…