Skip to content

Instantly share code, notes, and snippets.

@basilesportif
Last active June 26, 2020 13:28
Show Gist options
  • Save basilesportif/4a4660ff7f7959b430049468f3c5b056 to your computer and use it in GitHub Desktop.
Save basilesportif/4a4660ff7f7959b430049468f3c5b056 to your computer and use it in GitHub Desktop.
Simplest Possible Login on fake~zod
console.log("timluc");
const login = async () => {
const pass = 'lidlut-tabwed-pillex-ridrup';
const res = await fetch('http://localhost/~/login', {
method: 'POST',
body: `password=${pass}`
})
console.log(res);
};
login();
/* serve from an HTML file
put HTML and JS in /app/channel-playground
|commit
:file-server &file-server-action [%serve-dir /'channel-playground' /app/channel-playground %.y]
navigate to http://localhost/channel-playground/index.html
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment