Files
CatoandClaude b4fbc9cbc6 feat(auth): one AUTH_RUNTIME switch for every product staging AccountKit (#54)
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>
2026-11-01 10:59:10 +01:00

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