feat(deps): Integrate Clerk authentication and authorization

Add comprehensive Clerk authentication system with advanced features:

- Implement Clerk authentication provider
- Set up protected routes with role-based access control
- Configure advanced authentication flows
- Add middleware for authentication checks
- Implement user session management
- Create login, signup, and profile management components

This implementation enhances application security and provides a robust authentication solution with seamless user experience.
This commit is contained in:
siri1410 2025-03-28 10:52:01 -04:00
parent a620991529
commit c8cf876c70
7 changed files with 254 additions and 12 deletions

10
env.mjs
View file

@ -8,8 +8,14 @@ export const env = createEnv({
.optional()
.transform((value) => value === "true"),
},
client: {},
client:{
NEXT_PUBLIC_CLERK_ENABLE_KEYLESS: z
.enum(["true", "false"])
.optional()
.transform((value) => value === "true")
},
runtimeEnv: {
NEXT_PUBLIC_CLERK_ENABLE_KEYLESS: process.env.NEXT_PUBLIC_CLERK_ENABLE_KEYLESS,
ANALYZE: process.env.ANALYZE,
},
})
})