feat(auth): add bindProductionAuth(config) helper (no-op pending payload-users repo)

This commit is contained in:
2026-05-05 08:50:08 +02:00
parent f981266fd5
commit ef42abb3e1
2 changed files with 14 additions and 1 deletions

View File

@@ -6,7 +6,8 @@
"exports": {
".": "./src/index.ts",
"./cms": "./src/integrations/cms/index.ts",
"./api": "./src/integrations/api/router.ts"
"./api": "./src/integrations/api/router.ts",
"./di/bind-production": "./src/di/bind-production.ts"
},
"scripts": {
"build": "tsc --noEmit",

View File

@@ -0,0 +1,12 @@
import type { SanitizedConfig as _SanitizedConfig } from "payload";
// Auth currently uses Mock repositories even in production: see Plan 3
// decisions. This helper exists for API symmetry with other features and
// for forward-compatibility if a Payload-backed users repo is added later.
//
// Until then it's a no-op that intentionally accepts (and ignores) the
// SanitizedConfig argument so app-boot code can call it uniformly.
export function bindProductionAuth(_config: _SanitizedConfig): void {
// Default mock bindings from `module.ts` already loaded by container.ts;
// nothing to swap.
}