@@ -26,9 +26,6 @@ import * as Option from "effect/Option";
2626import * as Redacted from "effect/Redacted" ;
2727
2828const program = Effect . gen ( function * ( ) {
29- const betterAuthSecret = yield * Config . option (
30- Config . redacted ( "BETTER_AUTH_SECRET" ) ,
31- ) ;
3229 const polarAccessToken = yield * Config . option (
3330 Config . redacted ( "POLAR_ACCESS_TOKEN" ) ,
3431 ) ;
@@ -43,7 +40,6 @@ const program = Effect.gen(function* () {
4340 Config . string ( "STACKPANEL_DEPLOY_ENV" ) ,
4441 ) ;
4542 return {
46- betterAuthSecret,
4743 polarAccessToken,
4844 polarWebhookSecret,
4945 polarSuccessUrl,
@@ -58,10 +54,6 @@ const program = Effect.gen(function* () {
5854// throws is a true validation failure (none of these schemas have one).
5955const resolved = Effect . runSync ( program ) ;
6056
61- /** Better-Auth signing secret — `Redacted` so it doesn't accidentally leak. */
62- export const betterAuthSecret : Option . Option < Redacted . Redacted < string > > =
63- resolved . betterAuthSecret ;
64-
6557/** Polar API access token. When `None`, the polar plugin is not mounted. */
6658export const polarAccessToken : Option . Option < Redacted . Redacted < string > > =
6759 resolved . polarAccessToken ;
@@ -84,13 +76,6 @@ export const corsOrigin: Option.Option<string> = resolved.corsOrigin;
8476export const stackpanelDeployEnv : Option . Option < string > =
8577 resolved . stackpanelDeployEnv ;
8678
87- /**
88- * Unwrap a `Redacted<string>` only at the boundary where an SDK requires
89- * a raw string. Centralized so callers don't sprinkle `Redacted.value`
90- * around the codebase.
91- */
92- export const reveal = Redacted . value ;
93-
9479/**
9580 * Treats an empty string the same as a missing value. Used because
9681 * `Cloudflare.Vite({ env: { POLAR_ACCESS_TOKEN: process.env.POLAR_ACCESS_TOKEN ?? "" } })`
0 commit comments