@eve-horizon/auth
v0.1.1
Published
Unified auth SDK for Eve-compatible apps — agent jobs and user sessions
Maintainers
Readme
@eve-horizon/auth
Backend auth SDK for Eve-compatible apps. Verify Eve tokens and check org membership with Express middleware.
Install
npm install @eve-horizon/authQuick Start
import { eveUserAuth, eveAuthGuard, eveAuthConfig } from '@eve-horizon/auth';
// Parse tokens and check org membership (non-blocking)
app.use(eveUserAuth());
// Serve auth discovery config
app.get('/auth/config', eveAuthConfig());
// Protected route
app.get('/auth/me', eveAuthGuard(), (req, res) => res.json(req.eveUser));
// Protect all API routes
app.use('/api', eveAuthGuard());Environment Variables
Set automatically when deployed to Eve:
| Variable | Purpose |
|----------|---------|
| EVE_API_URL | JWKS fetch + remote token verification |
| EVE_ORG_ID | Org membership check |
| EVE_SSO_URL | Auth config discovery |
Docs
Full reference: Eve SDK Documentation
