pomdtr avatar
pomdtr
password_auth
Script
Password Auth Middleware Protect your vals behind a password. Use session cookies to persist authentication. Usage import { passwordAuth } from "https://esm.town/v/pomdtr/password_auth?v=84"; export default passwordAuth(() => { return new Response("OK"); }, { verifyPassword: (password) => password == Deno.env.get("VAL_PASSWORD") }); If you want to use an api token to authenticate: import { passwordAuth } from "https://esm.town/v/pomdtr/password_auth?v=84"; import { verifyToken } from "https://esm.town/v/pomdtr/verifyToken"; export default passwordAuth(() => { return new Response("OK"); }, { verifyPassword: verifyToken }); TODO [x] allow to authenticate using a val town token [ ] add a way to send an email to ask a password from the val owner [ ] automatically extend the session [ ] automatically remove expired sessions FAQ How to sign out ? Navigate to <your-site>/signout .
15
pomdtr avatar
pomdtr
webdav
HTTP
An interactive, runnable TypeScript val by pomdtr
0
molefrog avatar
molefrog
sqliteExplorerApp
HTTP
Forked from nbbaier/sqliteExplorerApp
0
heaversm avatar
heaversm
valleBlogV0
HTTP
Forked from janpaul123/valleBlogV0
0
yawnxyz avatar
yawnxyz
sqliteExplorerApp
HTTP
Forked from nbbaier/sqliteExplorerApp
0
janpaul123 avatar
janpaul123
valle_tmp_016298797667905655232930394407136
HTTP
@jsxImportSource https://esm.sh/react
0
willthereader avatar
willthereader
sqliteExplorerApp
HTTP
Forked from nbbaier/sqliteExplorerApp
0
ubyk avatar
ubyk
VALLErun
HTTP
Forked from janpaul123/VALLErun
0
danyx23 avatar
danyx23
sqliteExplorerApp
HTTP
Forked from nbbaier/sqliteExplorerApp
0
pomdtr avatar
pomdtr
privateExample
HTTP
An interactive, runnable TypeScript val by pomdtr
0
stevekrouse avatar
stevekrouse
sqlite_admin
HTTP
Forked from stevekrouse/reactExample
3
sammeltassen avatar
sammeltassen
sqliteExplorerApp
HTTP
Forked from nbbaier/sqliteExplorerApp
0
stevekrouse avatar
stevekrouse
passionateBeigeButterfly
HTTP
Forked from nbbaier/sqliteExplorerApp
0
janpaul123 avatar
janpaul123
valle_tmp_605448986086057210791953389018616
HTTP
@jsxImportSource https://esm.sh/react
0
ejfox avatar
ejfox
VALLErun
HTTP
Forked from janpaul123/VALLErun
0
ubixsnow avatar
ubixsnow
valleBlogV0
HTTP
Forked from janpaul123/valleBlogV0
0
Updated: June 19, 2024