UNPKG

nextjs-auth-starter

Version:

CLI tool to set up Next.js authentication with better-auth, PostgreSQL, and Drizzle ORM. Usage: npx nextjs-auth-starter init

1 lines 1.36 kB
{"version":3,"sources":["../src/lib/auth-config.ts","../src/lib/middleware.ts","../src/lib/db.ts"],"sourcesContent":["// This file will be copied to the user's project\n// So we use type-only imports to avoid bundle issues\n\nexport function createAuth(config: any) {\n // This is a template function that will be used in the generated code\n // The actual implementation will be in the template files\n throw new Error(\n \"This function should not be called directly. It is meant to be copied to your project.\"\n );\n}\n","// Type definitions for middleware\n\nexport function createAuthMiddleware() {\n return async function middleware(request: any) {\n // This is a template function that will be copied to the user's project\n throw new Error(\n \"This function should not be called directly. It is meant to be copied to your project.\"\n );\n };\n}\n\nexport const config = {\n matcher: [\"/((?!api|_next/static|_next/image|favicon.ico).*)\"],\n};\n","// This file will be copied to the user's project\n// So we use type-only imports to avoid bundle issues\n\nexport const db = {} as any;\n\nexport * from \"./schema\";\n"],"mappings":";AAGO,SAAS,WAAW,QAAa;AAGtC,QAAM,IAAI;AAAA,IACR;AAAA,EACF;AACF;;;ACPO,SAAS,uBAAuB;AACrC,SAAO,eAAe,WAAW,SAAc;AAE7C,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACF;;;ACNO,IAAM,KAAK,CAAC;","names":[]}