mirror of
https://github.com/bitbaum/accountkit.git
synced 2026-12-06 03:30:28 +01:00
evig, kivvi, petvity, surf-your-life and loki each defined the same `AUTH_RUNTIME === "accountkit"` check. @bitbaum/accountkit/auth/switch exports it once as sharedRuntimeEnabled(env), free of dependencies so a proxy or a provider gate can ask without loading the runtime. Claude-Session: https://claude.ai/code/session_019MDtmud6zcK4rStBGmYSML Co-authored-by: Claude <noreply@anthropic.com>
8 lines
434 B
TypeScript
8 lines
434 B
TypeScript
/**
|
|
* Whether a product runs on the shared runtime yet: `AUTH_RUNTIME=accountkit`.
|
|
* The one switch every product staging AccountKit beside Auth.js reads, so
|
|
* "on" means the same thing everywhere. Free of every dependency, so a proxy
|
|
* or a provider gate can ask without loading the runtime.
|
|
*/
|
|
export declare function sharedRuntimeEnabled(env?: Record<string, string | undefined>): boolean;
|
|
//# sourceMappingURL=switch.d.ts.map
|