Inline Diff Viewer

session.ts·feat/auth-refreshmain
+5-2
// Refresh the auth token
import { refresh } from "@beste/auth";
const session = refresh.from(req.cookies);
const session = await refresh.fromCookies(req);
// Old: rotate every other request
if (request.count % 2 === 0) session.rotate();
// Rotate on every use
session.rotate();
// Persist as httpOnly cookie
session.save({ cookie: "secure" });
export default session;

Looks good — ready to merge?

Lisa Park · 2 minutes ago

About this block

Inline Diff ViewerPRO

Browser-chrome card rendering an inline diff — added lines glow emerald, removed lines fade rose, branch arrow row in the header, and an approve-and-merge footer. Every label is editable; no media props required.

More Showcase blocks

View all Showcase
PRO

showcase35

Migration Before And After

PRO

showcase28

Markdown Editor With Live Preview

PRO

showcase19

Code Editor With PR Review

Get Pro access