The agent replaced HS256 with RS256 and updated the secret to use a PEM key pair for better security posture.
src/lib/auth.ts:9–12new SignJWT({ sub: userId })
src/lib/auth.ts:16await jwtVerify(token, PUBLIC_KEY)
Docs / Sandbox and code /
Card for a file the agent created or modified: filename, language, and content preview.
AuthForm.tsx
src/components/AuthForm.tsx
auth.ts
src/lib/auth.ts
schema.prisma
prisma/schema.prisma
seed.ts
prisma/seed.ts
File list
AuthForm.tsx
src/components/AuthForm.tsx
auth.ts
src/lib/auth.ts
schema.prisma
prisma/schema.prisma
seed.ts
prisma/seed.ts
Atoms
TabStrip
CodeRelevanceAnnotation
The agent replaced HS256 with RS256 and updated the secret to use a PEM key pair for better security posture.
Expected AuthError but received JWTExpired from the jose library. The error class needs to be caught and re-thrown.
| Prop | Type | Description |
|---|---|---|
| name* | string | Display file name including extension (e.g. 'AuthForm.tsx'). |
| path | string | Relative path from the project root shown below the name. |
| size | string | Human-readable file size (e.g. '4.2 KB'). |
| delta | string | Line count delta (e.g. '+48 lines'). |
| status* | "generating" | "ready" | "modified" | "failed" | "skipped" | Current file status — controls the status pill. |
| message | string | Short message shown for failed or skipped states. |
| onOpen | () => void | When provided, shows an open-in-editor button. |
| onDiff | () => void | When provided, shows a diff button. |
| className | string | Additional class names for the root element. |
* required.
import { GeneratedFileCard } from "@/components/sandbox/generated-file-card";
<GeneratedFileCard
name="AuthForm.tsx"
path="src/components/AuthForm.tsx"
size="3.1 KB"
delta="+82 lines"
status="ready"
onOpen={() => openFile("src/components/AuthForm.tsx")}
onDiff={() => showDiff("src/components/AuthForm.tsx")}
/>