JSPM

express-auth-ts

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q18507F
  • License MIT

Multiple authentication methods for Express (JWT, Session, API Key, OAuth, Basic, Custom Token)

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (express-auth-ts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    npm license downloads TypeScript PRs Welcome

    🔐 express-auth-ts

    Modern, flexible, and type-safe authentication middleware for Express.js projects. Easily add JWT, Session, API Key, OAuth, Basic Auth, and Custom Token (Magic Link/OTP) authentication to your Node.js/Express applications.


    🚀 What is it?

    express-auth-ts is a powerful, modular, and TypeScript-first authentication solution for Node.js/Express projects. It supports all major authentication methods and is ready for both development and production use.


    🎯 Key Features

    • Plug-and-play support for JWT, Session, API Key, OAuth, Basic Auth, and Custom Token (Magic Link/OTP)
    • Simple and customizable middleware functions for each auth method
    • Dynamic validation via async callback support (e.g., database checks)
    • Helper functions: JWT signing, session management, magic link/OTP generation
    • Full TypeScript type safety and autocomplete
    • Customizable error messages and behavior
    • Real-world usage examples and detailed documentation

    📚 Setup & Usage Guides

    ➡️ For all setup and usage guides, please see the full documentation at: Documentation


    🤝 Contributing

    1. Fork and work on your own branch.
    2. Test your changes.
    3. Submit a pull request.

    For detailed contribution guidelines, see:


    📝 License

    This project is licensed under the MIT License. See the full license at: LICENSE


    For any suggestions, contributions, or bug reports, please open an issue on GitHub!