Schedule posts to Bluesky with Cloudflare workers.
skyscheduler.work
cf
tool
bsky-tool
cloudflare
bluesky
schedule
bsky
service
social-media
cloudflare-workers
1import type { Context } from "hono";
2import { every } from "hono/combine";
3import { hasAuth, pullAuthData } from "./auth";
4
5export async function goHomeIfLogout(c: Context, next: any) {
6 if (!hasAuth(c)) {
7 return c.redirect("/");
8 }
9 await next();
10}
11
12export const redirectHomeIfLogout = every(pullAuthData, goHomeIfLogout);