lastloginExample
pomdtr
lastloginExample
An interactive, runnable TypeScript val by pomdtr
HTTP
libsqlstudio
pomdtr
libsqlstudio
LibSQLStudio UI for Val Town Fork this val to get started. To authenticate, make sure to use the same email as your val town account.
HTTP
vscode
pomdtr
vscode
Manage your blobs using VS Code ! Just fork this val to install it, and authenticate with your account email.
HTTP
githubOauth
pomdtr
githubOauth
An interactive, runnable TypeScript val by pomdtr
HTTP
libsqlstudio
spinningideas
libsqlstudio
Remix of: stevekrouse/libsqlstudio
HTTP
lastloginHono
pomdtr
lastloginHono
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;
Script
auth
pomdtr
auth
Minimal Auth Middleware Usage import { auth } from "https://esm.town/v/pomdtr/auth"; export default auth(req => Response.json({message: "You are logged in!"}));
Script
livelyBeigeOrangutan
rawwerks
livelyBeigeOrangutan
Remix of: rawwerks/githubOauth
HTTP
publicRouteTest
pomdtr
publicRouteTest
An interactive, runnable TypeScript val by pomdtr
HTTP
githubOauth
rawwerks
githubOauth
Remix of: pomdtr/githubOauth
HTTP
lastloginExample
rawwerks
lastloginExample
Remix of: pomdtr/lastloginExample
HTTP
libsqlstudio
sqlite
libsqlstudio
Remix of: pomdtr/libsqlstudio
HTTP
lastloginExample
yawnxyz
lastloginExample
Remix of: pomdtr/lastloginExample
HTTP
tenderOrangeJellyfish
rawwerks
tenderOrangeJellyfish
Remix of: pomdtr/githubOauth
HTTP
libsqlstudio
yawnxyz
libsqlstudio
Remix of: pomdtr/libsqlstudio
HTTP
sapphireSeahorse
pomdtr
sapphireSeahorse
An interactive, runnable TypeScript val by pomdtr
HTTP
Updated: December 17, 2024