๐ Socialite Pro: Unified Social Authentication System
๐ Overview
Socialite Pro is a robust, lightweight, and easy-to-integrate social authentication system. It provides a unified interface for OAuth2 logins across multiple platforms including Google, GitHub, Facebook, and Twitter. Designed for modern web applications that prioritize user experience and security.
๐ Key Features
- Multi-Provider Support: Seamless integration with major social platforms.
- Secure by Design: Built-in CSRF protection and state management.
- Developer Friendly: Clean API and comprehensive documentation.
- Extensible: Easily add custom OAuth2 providers.
๐ ูุธุฑุฉ ุนุงู ุฉ
Socialite Pro ูู ูุธุงู ุชูุซูู ุงุฌุชู ุงุนู ููู ูุฎููู ุงููุฒู ูุณูู ุงูุฏู ุฌ. ูููุฑ ูุงุฌูุฉ ู ูุญุฏุฉ ูุชุณุฌูู ุงูุฏุฎูู ุนุจุฑ ุจุฑูุชูููู OAuth2 ูู ูุตุงุช ู ุชุนุฏุฏุฉ ุชุดู ู Google ู GitHub ู Facebook ู Twitter. ุชู ุชุตู ูู ู ูุชุทุจููุงุช ุงูููุจ ุงูุญุฏูุซุฉ ุงูุชู ุชุถุน ุชุฌุฑุจุฉ ุงูู ุณุชุฎุฏู ูุงูุฃู ุงู ูู ู ูุฏู ุฉ ุฃููููุงุชูุง.
๐ ุงูู ู ูุฒุงุช ุงูุฑุฆูุณูุฉ
- ุฏุนู ู ูุตุงุช ู ุชุนุฏุฏุฉ: ุชูุงู ู ุณูุณ ู ุน ูุจุฑู ุงูู ูุตุงุช ุงูุงุฌุชู ุงุนูุฉ.
- ุฃู ุงู ุงูุชุฑุงุถู: ุญู ุงูุฉ ู ุฏู ุฌุฉ ุถุฏ ูุฌู ุงุช CSRF ูุฅุฏุงุฑุฉ ุงูุญุงูุฉ.
- ุตุฏูู ููู ุทูุฑูู: ูุงุฌูุฉ ุจุฑู ุฌูุฉ ูุธููุฉ ูุชูุซูู ุดุงู ู.
- ูุงุจู ููุชูุณุน: ุฅู ูุงููุฉ ุฅุถุงูุฉ ู ุฒูุฏู ุฎุฏู ุฉ OAuth2 ู ุฎุตุตูู ุจุณูููุฉ.
๐ ๏ธ Tech Stack | ุงูุชูููุงุช ุงูู ุณุชุฎุฏู ุฉ
- Node.js / TypeScript: Core logic and type safety.
- Passport.js: Authentication middleware.
- OAuth 2.0: Industry-standard protocol for authorization.
๐ Project Structure | ูููููุฉ ุงูู ุดุฑูุน
socialite/
โโโ src/ # Source code
โ โโโ providers/ # Social provider implementations
โ โโโ core/ # Core authentication logic
โโโ examples/ # Usage examples
โโโ docs/ # Detailed API documentation
โโโ package.json # Project configuration
๐ Quick Start | ุงูุจุฏุก ุงูุณุฑูุน
# Install the package
npm install @abdulelah/socialite-pro
# Configure your providers
import { Socialite } from '@abdulelah/socialite-pro';
const socialite = new Socialite({
github: { clientId: '...', clientSecret: '...' }
});
๐ License | ุงูุชุฑุฎูุต
This project is licensed under the MIT License.