mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 01:43:08 +00:00
16 lines
410 B
TypeScript
16 lines
410 B
TypeScript
import { ZitadelOptions, getApps, initializeApp } from "@zitadel/server";
|
|
|
|
export const zitadelConfig: ZitadelOptions = {
|
|
apiUrl: process.env.ZITADEL_API_URL ?? "",
|
|
projectId: process.env.ZITADEL_PROJECT_ID ?? "",
|
|
appId: process.env.ZITADEL_APP_ID ?? "",
|
|
token: "this should be a pat",
|
|
};
|
|
|
|
if (!getApps().length) {
|
|
initializeApp(zitadelConfig);
|
|
}
|
|
|
|
// const app = getApp();
|
|
// const auth = getAuth();
|