MCPcopy Index your code
hub / github.com/code100x/cms / RequestWithUser

Interface RequestWithUser

src/middleware.ts:10–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8};
9
10interface RequestWithUser extends NextRequest {
11 user?: {
12 id: string;
13 email: string;
14 };
15}
16
17export const verifyJWT = async (token: string): Promise<JWTPayload | null> => {
18 const secret = process.env.JWT_SECRET || '';

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected