Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: explicitely allow all parts to be exported #483

Merged
merged 2 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/access-api-with-pat.commonjs.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const { createAccessTokenInterceptor, createAuthClient } = require('@zitadel/node/api');

const apiEndpoint = 'https://zitadel-libraries-l8boqa.zitadel.cloud';
const personalAccessToken = 'Dp6uT84aVTqYLSMpk-H1-B3SPuqFms-Tz77cgWKlyrY3JxsZcDmb7kZoRK2ixaVNfuqmXfE';

async function main() {
const { createAccessTokenInterceptor, createAuthClient } = await import('@zitadel/node/dist/api/index.js');

const client = createAuthClient(apiEndpoint, createAccessTokenInterceptor(personalAccessToken));
const response = await client.getMyUser({});

Expand Down
2 changes: 1 addition & 1 deletion examples/access-api-with-pat.esm.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createAccessTokenInterceptor, createAuthClient } from '@zitadel/node/api';
import { createAccessTokenInterceptor, createAuthClient } from '@zitadel/node/dist/api/index.js';

const apiEndpoint = 'https://zitadel-libraries-l8boqa.zitadel.cloud';
const personalAccessToken = 'Dp6uT84aVTqYLSMpk-H1-B3SPuqFms-Tz77cgWKlyrY3JxsZcDmb7kZoRK2ixaVNfuqmXfE';
Expand Down
50 changes: 24 additions & 26 deletions examples/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading