{"library":"sp-plugin-auth","title":"Streamplace Auth Plugin","type":"library","description":"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.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install sp-plugin-auth"],"cli":null},"imports":["import authPlugin from 'sp-plugin-auth'","import type { AuthConfig } from 'sp-plugin-auth'","import { createAuthMiddleware } from 'sp-plugin-auth'"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/sp-plugin-auth","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import authPlugin from 'sp-plugin-auth';\nimport express from 'express';\nimport session from 'express-session';\n\nconst app = express();\n\napp.use(session({ secret: process.env.SESSION_SECRET ?? 'change-me', resave: false, saveUninitialized: true }));\napp.use(authPlugin({ provider: 'github', clientId: process.env.GITHUB_CLIENT_ID ?? '', clientSecret: process.env.GITHUB_CLIENT_SECRET ?? '' }));\n\napp.get('/profile', (req, res) => {\n  res.json({ user: req.user });\n});\n\napp.listen(3000);","lang":"typescript","description":"Shows basic setup of the auth plugin with GitHub OAuth, session middleware, and a protected route.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}