Roll your own auth boilerplate, REST API - Next.js
| .vscode | ||
| public | ||
| src | ||
| .editroconfig | ||
| .env.local.example | ||
| .eslintignore | ||
| .eslintrc.json | ||
| .gitignore | ||
| .prettierignore | ||
| components.json | ||
| next.config.js | ||
| package.json | ||
| pnpm-lock.yaml | ||
| postcss.config.js | ||
| README.md | ||
| tailwind.config.ts | ||
| tsconfig.json | ||
Roll Your Own Auth
Roll Your Own Auth is a TypeScript project that provides a flexible authentication system for your web applications.
This boilerplate is one of incoming boilerplates, this one leverages Next.js making requests to a REST API that implements authentication using session-based storage in Redis, the user id is then securely stored in HTTP-only cookies.
This specific project requires the following REST API
Getting Started
- Setup environment variables
- Install dependencies
pnpm i
- Start your server
pnpm dev
Open http://localhost:3000 with your browser to see the result.
This project uses shadcn/ui which provides UI components ready to copy paste manually or via their CLI, it uses radix-ui.
Todo
- Cleanup code
- Add middleware
- Handle server side errors