@orangecheck/auth-client 2.3.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -35,7 +35,8 @@ function normalizeAccount(raw) {
35
35
  displayName: raw.display_name ?? raw.displayName ?? null,
36
36
  nostrNpub: raw.nostr_npub ?? raw.nostrNpub ?? null,
37
37
  homeFederation: raw.home_federation_slug ?? raw.homeFederation ?? null,
38
- signingMethod: raw.signing_method ?? raw.signingMethod ?? null
38
+ signingMethod: raw.signing_method ?? raw.signingMethod ?? null,
39
+ isOwner: Boolean(raw.is_owner ?? raw.isOwner ?? false)
39
40
  };
40
41
  }
41
42
  function OcSessionProvider({
@@ -902,10 +903,7 @@ function WalletFlow({ authOrigin, audience, onSuccess }) {
902
903
  }
903
904
  let adapter;
904
905
  try {
905
- const moduleId = "@orangecheck/wallet-adapter";
906
- adapter = await Function("m", "return import(m)")(
907
- moduleId
908
- );
906
+ adapter = await import('@orangecheck/wallet-adapter');
909
907
  } catch {
910
908
  throw new Error(
911
909
  "@orangecheck/wallet-adapter not installed \xB7 add it to your consumer site"