The TEOS Auth Library is part of Elmahrosa International’s Sovereign Digital Public Infrastructure (DPI).
It provides authentication and identity services across the TEOS ecosystem, ensuring secure, reusable, and scalable access management.
- Implements standardized authentication flows (JWT, OAuth2, session management).
- Designed for reuse across 60+ Elmahrosa repositories.
- Reduces duplication by centralizing identity logic into a single library.
- Integrates seamlessly into the Sovereign Mesh architecture.
This library follows the Sovereign Mesh Strategy:
- Shared Components: Extracted authentication logic packaged for reuse.
- Strategic Monorepos: Compatible with TEOS Core monorepo for atomic changes.
- Standardized CI/CD: Automated testing, linting, and security scanning.
- Semantic Versioning: MAJOR.MINOR.PATCH for predictable updates.
- Clone the repository:
git clone https://github.com/elmahrosa/teos-auth-library.git
- Install dependencies:
npm install
- Run tests:
npm test
Import the library into your project:
import { authenticateUser, verifyToken } from '@elmahrosa/teos-auth-library';Example:
const token = authenticateUser(credentials);
const isValid = verifyToken(token);- All commits must pass linting and unit tests.
- Pull requests require review before merging.
- CI/CD pipelines run automatically on push.
- Publish step runs only on tagged releases (
vX.Y.Z).
For full ecosystem documentation, visit the Elmahrosa Docs Hub.
- Published via GitHub Packages.
- Release triggered on version tags (
vX.Y.Z). - Automated pipelines handle build, test, and publish.
- Fork the repo and create a feature branch.
- Submit a pull request with a clear description.
- Follow coding standards and contribution guidelines.
Part of Elmahrosa International’s Sovereign Mesh – Building scalable, sovereign digital infrastructure.
---