Skip to content

Commit

Permalink
readd the live keys in debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kio-td authored Jul 8, 2024
1 parent 6832038 commit 8774485
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ export class AgeVerificationSystem {
logger.info`Booting...`;
const me = await this.server.request("i", {});
logger.info`Signed in as ${me.username}`;

if (this.config.stripe.secret_key.startsWith("sk_live_") && this.config.environment === "debug")
logger.warn`You are using a live Stripe key in a debug environment! This is discouraged.`

logger.info`Stripe is online`;

await this.setupServer();
Expand Down Expand Up @@ -86,8 +90,6 @@ export class AgeVerificationSystem {
],
url: new URL("/callback", url ?? "").toString(),
});
}
// Removed this bit. Server doesn't need to know who it is in production.
}

/**
Expand Down

0 comments on commit 8774485

Please sign in to comment.