Some checks failed
Preview smoke / Should run? (pull_request) Has been cancelled
CI / Lint (pull_request) Has been cancelled
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
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 / 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
11 lines
484 B
JavaScript
11 lines
484 B
JavaScript
/**
|
|
* Adapter layer: Authentik disconnect (provider isolation).
|
|
* Per L5 audit finding (AGENTS.md rule 7): provider reference must stay inside adapter,
|
|
* never leak into route handler.
|
|
*/
|
|
|
|
export async function disconnectFromProvider(user, adapterOptions = {}) {
|
|
// Adapter holds provider reference; route passes only adapter options.
|
|
const result = await adapterOptions.provider?.disconnect?.();
|
|
return result ?? { status: 'disconnected', userId: user?.userId || null };
|
|
}
|