base con autenticacion, registro, modulo encuestas

This commit is contained in:
2025-06-16 12:02:22 -04:00
commit 475e0754df
411 changed files with 26265 additions and 0 deletions

17
apps/web/lib/auth.ts Normal file
View File

@@ -0,0 +1,17 @@
import NextAuth, { NextAuthConfig, Session } from 'next-auth';
import authConfig from './auth.config';
export const {
handlers,
signIn,
signOut,
auth,
}: {
handlers: any;
signIn: (provider?: string) => Promise<void>;
signOut: () => Promise<void>;
auth: () => Promise<Session | null>;
} = NextAuth({
session: { strategy: 'jwt' },
...(authConfig as NextAuthConfig),
});