An implementation of Whatsapp Web's Authentication mechanism using MEAN and a demo-Android App with Socket.io.
This can be Integrated with any Web Application Project for Authentication Puspose. Instead of Signing with UserId and Password Everytime on Web Application, you just need to scan the QR code from your Mobile Device.
- MongoDB
- Socket.io 2.0
- Node js (Server side)
- Angular 2 (Client side for Web Applicaion)
- Android Studio (Client side Android App for Scaning QR code)
- Start the MongoClient Server.
- Start the node js Server (Server -> index.js)
- Start the Angular2 web Application Server (whatsAuthClient)
- Import Android Project in Android Studio then Generate and Install Android App in Mobile Device.
- Angular Application shows the QR code which refreshes in every 5 seconds.
- Scan the QR code from mobile device.
- This will send SocketId, Timestamp and some meta Information for both Client (Android and Angular App).
- If everything is fine, it will give access to your personalised web portal.
- JWT (JSON web Token) expires and Socket Ids are removed from DB on Logout/ 3hrs.