There was an error while loading. Please reload this page.
1 parent 8f46915 commit 46fa8feCopy full SHA for 46fa8fe
1 file changed
apps/logicsrc-web/src/lib/coinpay.ts
@@ -150,7 +150,11 @@ export function getCoinPayOAuthConfig(): CoinPayOAuthConfig | null {
150
}
151
152
function getSessionSecret(): string {
153
- return process.env.LOGICSRC_SESSION_SECRET || process.env.COINPAY_OAUTH_CLIENT_SECRET || "logicsrc-dev-session-secret";
+ const secret = process.env.LOGICSRC_SESSION_SECRET || process.env.COINPAY_OAUTH_CLIENT_SECRET;
154
+ if (!secret) {
155
+ throw new Error("LOGICSRC_SESSION_SECRET or COINPAY_OAUTH_CLIENT_SECRET must be set");
156
+ }
157
+ return secret;
158
159
160
export function signSession(payload: Record<string, unknown>): string {
0 commit comments