#!/usr/bin/env node
import { createRequire as createRequire_BATI_CLI } from 'module';
const require = createRequire_BATI_CLI(import.meta.url);

import {
  rRs
} from "../../../../chunk-53NHAV3C.js";
import "../../../../chunk-IAWYWZSL.js";
import "../../../../chunk-IHX3I5SM.js";

// ../../boilerplates/auth0/dist/files/$.env.js
async function getEnv(props) {
  if (props.meta.BATI.has("cloudflare")) return;
  const auth0ClientId = process.env.TEST_AUTH0_CLIENT_ID;
  const auth0ClientSecret = process.env.TEST_AUTH0_CLIENT_SECRET;
  const auth0BaseUrl = process.env.TEST_AUTH0_ISSUER_BASE_URL;
  let envContent = await props.readfile?.();
  envContent = rRs(envContent, "AUTH0_CLIENT_ID", auth0ClientId ?? "", "Auth0 Client ID");
  envContent = rRs(envContent, "AUTH0_CLIENT_SECRET", auth0ClientSecret ?? "", "Auth0 Client Secret");
  envContent = rRs(envContent, "AUTH0_ISSUER_BASE_URL", auth0BaseUrl ?? "", "Auth0 base URL");
  return envContent;
}
export {
  getEnv as default
};
