Closed DanielRivers closed 2 months ago
The update focuses on integrating the Kinde authentication system into a Next.js application, enhancing user authentication and user experience. It involves setting up environment configurations, adding Next.js and global CSS type definitions, configuring Next.js settings, implementing API routes for authentication and protected content, creating a dashboard for authenticated users, establishing a global design system, and integrating authentication middleware.
File(s) | Summary |
---|---|
.gitignore |
Adds exclusion of playground/.next directory. |
package.json |
Updates dev:prepare script to use pnpm . |
playground/.env.local |
Introduces environment variables for Kinde authentication. |
playground/next-env.d.ts |
Includes Next.js types for global images. |
playground/next.config.js |
Defines basic Next.js configuration setup. |
playground/package.json |
Introduces Next.js starter kit with routing functionality. |
playground/src/app/api/auth/[...kindeAuth]/route.ts ,playground/src/app/api/protected/route.ts ,playground/src/app/api/public/route.ts |
Implement authentication, protected routes, and a simple API endpoint. |
playground/src/app/dashboard/page.tsx |
Introduces Dashboard component for authenticated users. |
playground/src/app/globals.css |
Introduces global CSS variables for styling. |
playground/src/app/layout.tsx |
Defines layout for Kinde authentication application. |
playground/src/app/page.module.css ,playground/src/app/page.tsx |
Introduces styling and a React component for the home page. |
playground/src/middleware.ts |
Adds authentication middleware for /dashboard route. |
playground/tsconfig.json |
Introduces compiler options for TypeScript project. |
pnpm-workspace.yaml |
Configures playground package within the workspace. |
@DanielRivers could you resolve conflicts pls /
Explain your changes
implements pnpm workspace and adds basic playground
Checklist
🛟 If you need help, consider asking for advice over in the Kinde community.
Summary by CodeRabbit
.gitignore
to exclude specific directories for cleaner version control.