Files
zitadel/packages/zitadel-client
2025-02-14 13:41:16 +01:00
..
2025-02-14 13:41:16 +01:00
2025-01-03 13:26:19 +01:00
2024-07-30 10:41:23 +02:00
2025-02-10 14:04:43 +00:00
2025-02-10 14:04:43 +00:00
2025-01-03 14:21:27 +01:00
2024-05-16 11:38:56 -04:00
2025-02-06 11:00:04 +01:00
2025-02-12 13:51:43 +01:00

ZITADEL Client

This package exports services and utilities to interact with ZITADEL

Installation

To install the package, use npm or yarn:

npm install @zitadel/client

or

yarn add @zitadel/client

Usage

Importing Services

You can import and use the services provided by this package to interact with ZITADEL.

import { createSettingsServiceClient, makeReqCtx } from "@zitadel/client/v2";

// Example usage
const transport = createServerTransport(process.env.ZITADEL_SERVICE_USER_TOKEN!, { baseUrl: process.env.ZITADEL_API_URL! });

const settingsService = createSettingsServiceClient(transport);

settingsService.getBrandingSettings({ ctx: makeReqCtx("orgId") }, {});

Utilities

This package also provides various utilities to work with ZITADEL

import { timestampMs } from "@zitadel/client";

// Example usage
console.log(`${timestampMs(session.creationDate)}`);

Documentation

For detailed documentation and API references, please visit the ZITADEL documentation.

Contributing

Contributions are welcome! Please read the contributing guidelines before getting started.