forked from wangziqi/gongxue-base
test: add supabase jwks auth regression
This commit is contained in:
@@ -86,6 +86,9 @@ function validateProductionConfig(nextConfig: ApiConfig) {
|
||||
if (!nextConfig.authJwtJwksUrl && isUnsafeSecret(nextConfig.authJwtSecret, DEFAULT_AUTH_JWT_SECRET)) {
|
||||
failures.push('AUTH_JWT_SECRET or AUTH_JWT_JWKS_URL must be configured for production JWT verification');
|
||||
}
|
||||
if (nextConfig.authJwtJwksUrl && !nextConfig.authJwtIssuer.trim()) {
|
||||
failures.push('AUTH_JWT_ISSUER is required when AUTH_JWT_JWKS_URL is configured');
|
||||
}
|
||||
if (isUnsafeSecret(nextConfig.platformAdminApiKey, DEFAULT_PLATFORM_ADMIN_API_KEY)) {
|
||||
failures.push('PLATFORM_ADMIN_API_KEY must be a strong production secret until platform JWT is implemented');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user