Skip to content

AuthSync is a secure and efficient session transfer system that allows users to transfer their active sessions across devices using QR codes. This project is designed to provide a seamless experience for users who want to log in to a new device while maintaining high security standards to prevent unauthorized access or replay attacks.

Notifications You must be signed in to change notification settings

Ragini24-creator/AuthSync

Repository files navigation

AuthSync - Secure Session Transfer via QR Code

Overview AuthSync is a secure and efficient session transfer system that allows users to transfer their active sessions across devices using QR codes. This project is designed to provide a seamless experience for users who want to log in to a new device while maintaining high security standards to prevent unauthorized access or replay attacks.

Key Features

QR Code-Based Session Transfer: Users can scan a dynamically generated QR code to transfer their session securely to another device.

JWT Authentication: Utilizes JSON Web Tokens for secure user authentication and request validation.

Session Token Logic: Implements time-limited, unique session tokens to ensure QR codes cannot be reused or tampered with.

Signature Validation: Data integrity is maintained through cryptographic signing of QR code data.

Expiry Mechanism: QR codes include an expiration time to prevent replay attacks and unauthorized access.

Primary Device Confirmation: Adds an extra layer of security by requiring user confirmation from the primary device before session transfer is completed.

Tech Stack

Backend: Node.js, Express.js

Authentication: JSON Web Tokens (JWT)

Database: MongoDB

Installation

  1. Clone the repository: git clone https://github.com/your-repo/authsync.git

  2. Install dependencies: npm install

  3. Set up environment variables: Create a .env file with: SECRET_KEY=your_jwt_secret DB_URI=your_mongodb_uri

  4. Start the server: npm start

Feedback and Suggestions

This project is a part of my learning journey, and I aim to implement real-world solutions for secure session management. If you have any suggestions, feedback, or ideas for improvement, I would greatly appreciate hearing them. Constructive criticism is always welcome and will help me refine and enhance the project further

About

AuthSync is a secure and efficient session transfer system that allows users to transfer their active sessions across devices using QR codes. This project is designed to provide a seamless experience for users who want to log in to a new device while maintaining high security standards to prevent unauthorized access or replay attacks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published