Cut Auth.js DB load with cached jwtVersion checks, surface Redis in /api/health and deploy warnings, add admin help-center ticket reply UI, rate-limit API tickets/reactions/referral claims, and revoke PATs on sign-out-everywhere. Co-authored-by: Cursor <[email protected]>
17 lines
310 B
TypeScript
17 lines
310 B
TypeScript
import type { DefaultSession } from "next-auth";
|
|
|
|
declare module "next-auth" {
|
|
interface Session {
|
|
user: { id: string; rank: number } & DefaultSession["user"];
|
|
}
|
|
}
|
|
|
|
declare module "next-auth/jwt" {
|
|
interface JWT {
|
|
rank?: number;
|
|
jwtVersion?: number;
|
|
jwtCheckedAt?: number;
|
|
invalid?: boolean;
|
|
}
|
|
}
|