MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / createJWTConfig

Function createJWTConfig

apps/api/src/lib/jwt/jwt-utils.ts:7–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5import { nowMs } from "../time/now";
6
7export const createJWTConfig = () =>
8 jwt({
9 name: JWT_NAME,
10 secret: env.JWT_SECRET,
11 exp: JWT_TTL,
12 });
13
14/**
15 * Build the payload signed into the auth JWT.

Callers 6

mfa.routes.tsFile · 0.90
auth.routes.tsFile · 0.90
requireAuthFunction · 0.90
tryAuthFunction · 0.90
signCookieFunction · 0.90
jwt-utils.test.tsFile · 0.90

Calls

no outgoing calls

Tested by 1

signCookieFunction · 0.72