Some checks failed
CI / Schema map up to date (pull_request) Has been cancelled
CI / Forbidden patterns (9 checks) (pull_request) Has been cancelled
CI / Migrations apply (node-pg-migrate) (pull_request) Has been cancelled
CI / Unit tests (vitest) (pull_request) Has been cancelled
CI / Lint (pull_request) Has been cancelled
Convoy metrics gate / Require role-event telemetry on convoy PRs (pull_request) Has been cancelled
PR Health rollup / Aggregate gate status (pull_request) Has been cancelled
Preview smoke / Should run? (pull_request) Has been cancelled
Preview smoke / Playwright smoke (pull_request) Has been cancelled
- lib/card-import/lorcana-bulk.js: Lorcast per-card pricing via api.lorcast.com/v0/cards/search (10 req/sec, 110ms delay, 429 retry) as cross-check to Foilio feed - lib/card-import/pokemon-bulk.js: TCGdex pricing (already wired via lib/pricing/tcgdex-client.js) - test/lib/card-import-lorcana-bulk.test.js: new price fields in mapper - docs/project/pricing-api-research-20260915.md: final verified source matrix - docs/DOKPLOY_DEPLOY.md: pricing API env vars
13 lines
533 B
JavaScript
13 lines
533 B
JavaScript
/**
|
|
* Disconnect route — isolated adapter layer (L5 audit fix: no direct provider ref in route).
|
|
*/
|
|
|
|
import { disconnectFromProvider } from '../../../lib/auth-adapter/disconnect-adapter.js';
|
|
|
|
export default async function handler(req, res) {
|
|
// Route uses adapter only; no provider import outside adapter.
|
|
const result = await disconnectFromProvider({ userId: req.body?.userId }, {
|
|
provider: null, // adapter injects; route does not reference directly
|
|
});
|
|
return res.status(200).json({ success: true, ...result });
|
|
}
|