error 'Invalid security or form key. Please refresh the page' displays after login to admin backend
Then refresh the page, the msg disappear.
Hello @napawanjac68c2
This is the default message that came from the Magento system. When the admin session time is over. there is no bug related to this message.
If you get the solution then please, "Kudos" and "Accept as Solution" for Token of Appreciation
run this command
php bin/magento config:set system/security/max_session_size_admin 0