An authentication plugin for Streamplace, an open-source live streaming platform. This package provides authentication middleware and utilities for Streamplace plugins. Version 0.1.10 is prerelease with no stable release cadence yet. It is designed specifically for the Streamplace ecosystem and not intended for general use. Differentiators include simple integration with Streamplace's plugin system and built-in session management.
npm install sp-plugin-authNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic setup of the auth plugin with GitHub OAuth, session middleware, and a protected route.
Use default import syntax and call the function with config.
Remove `session` from config and add express-session middleware before the auth plugin.
Ensure `app.use(session(...))` is called before `app.use(authPlugin(...))`.
Reference Streamplace type definitions by importing 'sp-core' or adding `/// <reference types="sp-core" />`.
Wrap route handlers in `try/catch` or use a package like `express-async-errors`.
Run `npm install sp-core` as a dependency in your project.
Update to `import authPlugin from 'sp-plugin-auth'` and call it as a function.
Ensure 'sp-core' is installed and a tsconfig includes its types, or add a local type declaration.