feat(auth): add bindProductionAuth(config) helper (no-op pending payload-users repo)
This commit is contained in:
@@ -6,7 +6,8 @@
|
|||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/index.ts",
|
".": "./src/index.ts",
|
||||||
"./cms": "./src/integrations/cms/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": {
|
"scripts": {
|
||||||
"build": "tsc --noEmit",
|
"build": "tsc --noEmit",
|
||||||
|
|||||||
12
packages/auth/src/di/bind-production.ts
Normal file
12
packages/auth/src/di/bind-production.ts
Normal 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.
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user