Is there a secure method to authenticate login credentials via AJAX on a Squarespace website without using PHP? I am currently trying to password protect certain pages on my website by validating login information stored in an external PHP script and database.
I am exploring different options, such as storing a token returned upon successful login in order to authenticate users on subsequent pages. I have researched using cookies, web storage, local storage, and window.name, but haven't found a completely secure solution without employing PHP.
Do you know of a secure way to achieve this authentication process securely on a Squarespace website?