https://github.com/sanjitgh/authorization-client-side
https://github.com/sanjitgh/authorization-client-side
authentication jwt-token mern-stack
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sanjitgh/authorization-client-side
- Owner: sanjitgh
- Created: 2025-06-01T21:05:35.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-03T17:37:32.000Z (about 1 year ago)
- Last Synced: 2025-07-19T20:47:57.385Z (12 months ago)
- Topics: authentication, jwt-token, mern-stack
- Language: JavaScript
- Homepage: https://shop-auth-840db.web.app
- Size: 66.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Auth
Auth is a full-stack authentication application built with React, Express, and MongoDB. It provides secure user registration, login, and session handling using HTTP-only cookies. The app supports dynamic subdomains like `.localhost`, with seamless cross-subdomain authentication.
## 🌐 Live Demo
> https://shop-auth-840db.web.app
---
## 🚀 Features
- 🧑💼 **User Authentication**
- Register and login functionality
- Session token stored in HTTP-only cookies
- Cross-subdomain
---
## 🛠️ Tech Stack
- **Frontend**: React (Vite), Tailwind CSS
- **Backend**: Express.js, MongoDB (native driver)
- **Authentication**: Custom JWT-based system with HTTP-only cookies
- **Hosting**: Firebase for front-end & API for vercel
---
## 🧑💻 Installation Guide
### 1. Clone the repository
```bash
git clone https://github.com/sanjitgh/authorization-client-side.git
cd authorization-client-side
```
- **Note**: If you run it localhost, You need to change some configaration, inside the router.jsx file cheange !isSubdomain function, just skip ! (not) sign.