Protect your vals behind your Val Town API Token. Use session cookies to persist authentication.
Forked from @pomdtr/password_auth.
import { vtTokenSessionAuth } from "https://esm.town/v/stevekrouse/vtTokenSessionAuthSafe";
export default vtTokenSessionAuth(() => Response.json("Authenticated!"))
To sign out, navigate to /signout
.
Migrated from folder: Archive/vtTokenSessionAuth