riligar-dev-auth-elysia — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited riligar-dev-auth-elysia (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
This skill provides a backend workflow for integrating authentication and permissions using the @riligar/auth-elysia SDK.
Install the backend SDK:
bun add @riligar/auth-elysiaSet up your Secret Key and URLs in your environment files.
[!CAUTION] Backend integration requires the Secret Key (sk_...). Never share this key or include it in client-side code.# .env.development
AUTH_API_URL=https://manager.myauth.click
AUTH_API_SECRET=sk_test_your_secret_key
AUTH_JWKS_URL=https://manager.myauth.click/.well-known/jwks.json
# .env.production
AUTH_API_URL=https://manager.myauth.click
AUTH_API_SECRET=sk_live_your_secret_key
AUTH_JWKS_URL=https://manager.myauth.click/.well-known/jwks.jsonAdd the authPlugin to your Elysia instance.
import { Elysia } from 'elysia'
import { authPlugin } from '@riligar/auth-elysia'
const app = new Elysia()
.use(
authPlugin({
apiUrl: process.env.AUTH_API_URL,
apiKey: process.env.AUTH_API_SECRET,
jwksUrl: process.env.AUTH_JWKS_URL,
})
)
.listen(3000)For more patterns, see server-snippets.js.
ctx.auth and ctx.user. See context-and-user.md.requireAuth middleware and guard route groups. See route-protection.md.verifyToken for custom JWT handling. See manual-verification.md.Use onBeforeHandle to secure multiple endpoints efficiently.
app.group('/api/v1', app => app.onBeforeHandle(requireAuth).get('/data', () => ({ ok: true })))Access the decoded user data directly from the context.
app.get('/profile', ({ user }) => {
return { id: user.id, email: user.email }
})~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.