initial commit on Federted servers
release gate / check (push) Failing after 8m35s

This commit is contained in:
Andrew S Erwin
2026-10-19 16:23:55 -05:00
commit b9721ff13f
217 changed files with 31534 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
import { DefaultSession } from 'next-auth';
import { JWT } from 'next-auth/jwt';
declare module 'next-auth' {
interface Session {
user: {
id: string;
role?: string;
// Go tokenVersion captured at login; embedded in every backend
// assertion so a revocation bump invalidates this session (SEC-02).
ver?: number;
// Add custom fields here
} & DefaultSession['user']; // includes name, email, image
}
interface User {
id: string;
role?: string;
tokenVersion?: number;
// Mirror any fields added to Session['user'] above
}
}
declare module 'next-auth/jwt' {
interface JWT {
id: string;
role?: string;
ver?: number;
}
}