We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4e09dad + d7b787e commit 5d87b82Copy full SHA for 5d87b82
packages/backend-core/src/util/clerkApiKey.ts
@@ -1,5 +1,5 @@
1
export function isDevelopmentOrStaging(apiKey: string): boolean {
2
- return apiKey.startsWith('test_');
+ return apiKey.startsWith('test_') || apiKey.startsWith('sk_test_');
3
}
4
5
export function isProduction(apiKey: string): boolean {
packages/backend/src/util/instance.ts
@@ -1,9 +1,9 @@
export function isDevelopmentFromApiKey(apiKey: string): boolean {
export function isProductionFromApiKey(apiKey: string): boolean {
6
- return apiKey.startsWith('live_');
+ return apiKey.startsWith('live_') || apiKey.startsWith('sk_live_');
7
8
9
export function isStaging(frontendApi: string): boolean {
0 commit comments