mocksaml/lib/env.ts

16 lines
426 B
TypeScript
Raw Normal View History

import { fetchPrivateKey, fetchPublicKey } from 'utils';
const appUrl = process.env.APP_URL || `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}` || 'http://localhost:4000';
const entityId = process.env.ENTITY_ID || 'https://saml.example.com/entityid';
const privateKey = fetchPrivateKey();
const publicKey = fetchPublicKey();
2022-02-17 06:57:50 +00:00
2022-02-22 06:05:21 +00:00
const config = {
2022-02-18 04:07:27 +00:00
appUrl,
entityId,
privateKey,
publicKey,
2022-02-22 05:36:06 +00:00
};
2022-02-22 06:05:21 +00:00
export default config;