Public
Script
pomdtr avatar
libsqlstudio
@pomdtr
HTTP
LibSQLStudio UI for Val Town To authenticate, use the same email as your val town account.
pomdtr avatar
lastloginExample
@pomdtr
HTTP (deprecated)
An interactive, runnable TypeScript val by pomdtr
pomdtr avatar
apricotPartridge
@pomdtr
HTTP (deprecated)
// use my private proxy
pomdtr avatar
handler
@pomdtr
Script
An interactive, runnable TypeScript val by pomdtr
yawnxyz avatar
libsqlstudio
@yawnxyz
HTTP (deprecated)
Forked from pomdtr/libsqlstudio
iamseeley avatar
libsqlstudio
@iamseeley
HTTP (deprecated)
Forked from pomdtr/libsqlstudio
stevekrouse avatar
libsqlstudio
@stevekrouse
HTTP (deprecated)
Forked from pomdtr/libsqlstudio
pomdtr avatar
lastloginHono
@pomdtr
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;
pomdtr avatar
sapphireSeahorse
@pomdtr
HTTP (deprecated)
An interactive, runnable TypeScript val by pomdtr
pomdtr avatar
auth
@pomdtr
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!"}));
philz avatar
libsqlstudio
@philz
HTTP (deprecated)
Forked from pomdtr/libsqlstudio
sqlite avatar
libsqlstudio
@sqlite
HTTP (deprecated)
Forked from pomdtr/libsqlstudio
pomdtr avatar
publicRouteTest
@pomdtr
HTTP (deprecated)
An interactive, runnable TypeScript val by pomdtr
yawnxyz avatar
lastloginExample
@yawnxyz
HTTP (deprecated)
Forked from pomdtr/lastloginExample
1
Next
August 15, 2024