mirror of
https://github.com/bitbaum/accountkit.git
synced 2026-12-04 05:17:14 +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>
10 lines
441 B
JavaScript
10 lines
441 B
JavaScript
/**
|
|
* 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 function sharedRuntimeEnabled(env = process.env) {
|
|
return env.AUTH_RUNTIME === "accountkit";
|
|
}
|
|
//# sourceMappingURL=switch.js.map
|