account worker
- Overview
- Features
- Installation
- Usage
- Configuration
- Documentation
- Contributing
- Roadmap
- Support
- License
- Acknowledgments
User account management with zero-trust authentication:
- OAuth flow + session management
- Password reset with email verification
- Two-Factor Authentication (2FA) via TOTP
- GDPR data export and account deletion
- Audit logging for compliance
Centralizes all identity & authentication logic. Integrates with:
data.xaostech.io- Consent and privacy datablog.xaostech.io- User posts and comments- Other workers - User verification via session tokens
- π OAuth + Sessions - Stateless JWT-like auth tokens
- π Password Reset - Email-verified flow with 15-min tokens
- π 2FA (TOTP) - Time-based OTP with recovery codes
- π€ Data Export - GDPR Art. 15 (JSON export)
- ποΈ Account Deletion - GDPR Art. 17 (30-day grace)
- π Audit Trail - IP, timestamp, action logging
- π SameSite=Strict - Secure session cookies
- Node.js 18+
- Cloudflare account with Workers
- D1 database
- KV namespace (sessions, recovery codes, reset tokens)
# Clone the repository
git clone https://github.com/XAOSTECH/account.xaostech.io.git
cd account.xaostech.io
# Install dependencies
npm install
# Local development
npm run dev
# Deploy to production
npm run deploy
```bash
# Clone the repository
git clone https://github.com/XAOSTECH/account.xaostech.io.git
cd account.xaostech.io
# Run installation
./install.sh
# Or manual installation
{{MANUAL_INSTALL_STEPS}}# npm
npm install {{PACKAGE_NAME}}
# yarn
yarn add {{PACKAGE_NAME}}
# apt (Debian/Ubuntu)
sudo apt install {{PACKAGE_NAME}}
# brew (macOS)
brew install {{PACKAGE_NAME}}{{BASIC_USAGE_EXAMPLE}}{{ADVANCED_USAGE_EXAMPLE}}π Example 1: {{EXAMPLE_1_TITLE}}
{{EXAMPLE_1_CODE}}π Example 2: {{EXAMPLE_2_TITLE}}
{{EXAMPLE_2_CODE}}| Variable | Description | Default |
|---|---|---|
{{ENV_VAR_1}} |
{{ENV_VAR_1_DESC}} | {{ENV_VAR_1_DEFAULT}} |
{{ENV_VAR_2}} |
{{ENV_VAR_2_DESC}} | {{ENV_VAR_2_DEFAULT}} |
# config.yml
{{CONFIG_FILE_EXAMPLE}}| Document | Description |
|---|---|
| π Getting Started | Quick start guide |
| π API Reference | Complete API documentation |
| π§ Configuration | Configuration options |
| β FAQ | Frequently asked questions |
Contributions are welcome! Please read our Contributing Guidelines before submitting PRs.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
See also: Code of Conduct | Security Policy
- {{COMPLETED_FEATURE_1}}
- {{COMPLETED_FEATURE_2}}
- {{PLANNED_FEATURE_1}}
- {{PLANNED_FEATURE_2}}
- {{PLANNED_FEATURE_3}}
See the open issues for a full list of proposed features and known issues.
- π§ Email: {{SUPPORT_EMAIL}}
- π» Issues: GitHub Issues
- π¬ Discussions: GitHub Discussions
- π Wiki: GitHub Wiki
Distributed under the GPL-3.0 License. See LICENSE for more information.
- {{ACKNOWLEDGMENT_1}}
- {{ACKNOWLEDGMENT_2}}
- {{ACKNOWLEDGMENT_3}}