https://github.com/smakosh/authrollout-rest-express
Roll your own auth boilerplate, REST API - express js Prisma SQlite Redis http-only cookie
https://github.com/smakosh/authrollout-rest-express
Last synced: 7 months ago
JSON representation
Roll your own auth boilerplate, REST API - express js Prisma SQlite Redis http-only cookie
- Host: GitHub
- URL: https://github.com/smakosh/authrollout-rest-express
- Owner: smakosh
- Created: 2023-09-17T20:27:37.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-20T22:11:47.000Z (almost 2 years ago)
- Last Synced: 2025-02-28T19:12:11.860Z (7 months ago)
- Language: TypeScript
- Size: 32.2 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 Express.js, Prisma, SQLite, and Redis to implement authentication using session-based storage in Redis, the user id is then securely stored in HTTP-only cookies.
This specific project requires the following [Next.js app](https://github.com/smakosh/AuthRollout-rest-next)
## Features
- **Session-Based Authentication**: Easily set up session-based authentication using Redis for storing and accessing user sessions fast.
- **JWT-Based Authentication**: To be implemented## Getting Started
To get started with Roll Your Own Auth, follow these steps:
1. Clone this repository:
```bash
git clone git@github.com:smakosh/AuthRollout-rest-express.git
```2. Setup environment variables
3. Install dependencies```bash
pnpm i
```4. Start your server
```bash
pnpm dev
```## Todo
- [ ] implement the refresh/access tokens and the verification process for those who prefer jwt strategy in a different branch
- [ ] Hot reload, ts-node-dev or some other way
- [ ] Dockerize this?