https://github.com/callmemaverick/authsystem
AuthSystem is an authentication system that allows users to sign up, sign in, and authenticate using both Google and GitHub OAuth providers. The system also supports local authentication with email and password.
https://github.com/callmemaverick/authsystem
Last synced: over 1 year ago
JSON representation
AuthSystem is an authentication system that allows users to sign up, sign in, and authenticate using both Google and GitHub OAuth providers. The system also supports local authentication with email and password.
- Host: GitHub
- URL: https://github.com/callmemaverick/authsystem
- Owner: CallMeMaverick
- License: apache-2.0
- Created: 2024-05-25T12:08:43.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-26T13:49:02.000Z (about 2 years ago)
- Last Synced: 2025-03-20T17:47:59.833Z (over 1 year ago)
- Language: Pug
- Homepage: https://auth-system-maverick-df7b9ab09da7.herokuapp.com/signin
- Size: 60.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🛂 AuthSystem
AuthSystem is an authentication system that allows users to sign up, sign in, and authenticate using both Google and GitHub OAuth providers. The system also supports local authentication with email and password.
## 💡 Features
- User sign-up and sign-in using email and password.
- Google OAuth authentication.
- GitHub OAuth authentication.
- Protected routes accessible only to authenticated users.
- User session management and logout functionality.
## ⚙️ Installation
1. **Clone the repo**
```bash
git clone git@github.com:CallMeMaverick/AuthSystem.git
cd AuthSystem
```
2. **Install dependecies**
```bash
npm install
```
3. **Set up environment variables**:
Create a .env file in the project root with the following content:
```env
PORT=you_port
MONGO_URI=your_mongo_database_uri
SESSION_SECRET=your_session_secret
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
GITHUB_CLIENT_ID=your_github_client_id
GITHUB_CLIENT_SECRET=your_github_client_secret
```
4. **Run the application**:
```bash
npm start
```
## 📄 License
This project is licensed under the Apache-2.0 License - see the [LICENSE](LICENSE) file for details.