mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-11 22:02:26 +00:00
20 lines
575 B
TypeScript
20 lines
575 B
TypeScript
import { ZitadelApp } from "./app";
|
|
import { authMiddleware } from "./middleware";
|
|
|
|
// const createClient = <Client>(
|
|
// definition: CompatServiceDefinition,
|
|
// accessToken: string
|
|
// ) => {
|
|
// const channel = createChannel(process.env.ZITADEL_API_URL ?? "");
|
|
// return createClientFactory()
|
|
// .use(authMiddleware(accessToken))
|
|
// .create(definition, channel) as Client;
|
|
// };
|
|
|
|
export async function getAuth(app?: ZitadelApp) {
|
|
// return createClient<AuthServiceClient>(
|
|
// AuthServiceDefinition as CompatServiceDefinition,
|
|
// ""
|
|
// );
|
|
}
|