pomdtr avatar
pomdtr
libsqlstudio
HTTP
LibSQLStudio UI for Val Town To authenticate, use the same email as your val town account.
3
pomdtr avatar
pomdtr
lastloginExample
HTTP
An interactive, runnable TypeScript val by pomdtr
1
pomdtr avatar
pomdtr
apricotPartridge
HTTP
// use my private proxy
0
pomdtr avatar
pomdtr
handler
Script
An interactive, runnable TypeScript val by pomdtr
0
pomdtr avatar
pomdtr
lastloginHono
Script
See @pomdtr/lastlogin for more informations about the middleware Example /** @jsxImportSource npm:hono@3/jsx */ import { lastlogin } from "https://esm.town/v/pomdtr/lastloginHono"; import { verifyUserEmail } from "https://esm.town/v/pomdtr/verifyUserEmail" import { Hono } from "npm:hono"; const app = new Hono(); const lastloginMiddleware = lastlogin({ verifyEmail: verifyUserEmail }); // required for the auth pages to work app.use("/auth/*", lastloginMiddleware); // this page is public app.get("/", async (c) => { return c.html( <div> There is a secret message for you if you{" "}<a href="/secret">login</a> </div>, ); }); // this page requires the user to signup app.get("/secret", lastloginMiddleware, async (c) => { const email = c.req.header("X-User-Email"); return c.html( <div> I think {email} is a really silly email address, actually. </div>, ); }); export default app.fetch;
1
pomdtr avatar
pomdtr
auth
Script
Minimal Auth Middleware Usage import { auth } from "https://esm.town/v/pomdtr/auth"; export default auth(req => Response.json({message: "You are logged in!"}));
2
spinningideas avatar
spinningideas
libsqlstudio
HTTP
Forked from stevekrouse/libsqlstudio
0
pomdtr avatar
pomdtr
sapphireSeahorse
HTTP
An interactive, runnable TypeScript val by pomdtr
0
iamseeley avatar
iamseeley
libsqlstudio
HTTP
Forked from pomdtr/libsqlstudio
0
pomdtr avatar
pomdtr
publicRouteTest
HTTP
An interactive, runnable TypeScript val by pomdtr
0
stevekrouse avatar
stevekrouse
libsqlstudio
HTTP
Forked from pomdtr/libsqlstudio
0
yawnxyz avatar
yawnxyz
libsqlstudio
HTTP
Forked from pomdtr/libsqlstudio
0
yawnxyz avatar
yawnxyz
lastloginExample
HTTP
Forked from pomdtr/lastloginExample
0
philz avatar
philz
libsqlstudio
HTTP
Forked from pomdtr/libsqlstudio
0
sqlite avatar
sqlite
libsqlstudio
HTTP
Forked from pomdtr/libsqlstudio
0
1
Next
Updated: November 7, 2024