@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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -3
package/dist/index.d.mts
CHANGED
|
@@ -9,6 +9,7 @@ interface OcAccount {
|
|
|
9
9
|
nostrNpub?: string | null;
|
|
10
10
|
homeFederation?: string | null;
|
|
11
11
|
signingMethod?: 'fedimint_threshold' | 'fedimint_client' | 'bip322' | null;
|
|
12
|
+
isOwner?: boolean;
|
|
12
13
|
}
|
|
13
14
|
type OcSessionStatus = 'loading' | 'authenticated' | 'anonymous' | 'error';
|
|
14
15
|
interface OcSessionState {
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ interface OcAccount {
|
|
|
9
9
|
nostrNpub?: string | null;
|
|
10
10
|
homeFederation?: string | null;
|
|
11
11
|
signingMethod?: 'fedimint_threshold' | 'fedimint_client' | 'bip322' | null;
|
|
12
|
+
isOwner?: boolean;
|
|
12
13
|
}
|
|
13
14
|
type OcSessionStatus = 'loading' | 'authenticated' | 'anonymous' | 'error';
|
|
14
15
|
interface OcSessionState {
|
package/dist/index.js
CHANGED
|
@@ -57,7 +57,8 @@ function normalizeAccount(raw) {
|
|
|
57
57
|
displayName: raw.display_name ?? raw.displayName ?? null,
|
|
58
58
|
nostrNpub: raw.nostr_npub ?? raw.nostrNpub ?? null,
|
|
59
59
|
homeFederation: raw.home_federation_slug ?? raw.homeFederation ?? null,
|
|
60
|
-
signingMethod: raw.signing_method ?? raw.signingMethod ?? null
|
|
60
|
+
signingMethod: raw.signing_method ?? raw.signingMethod ?? null,
|
|
61
|
+
isOwner: Boolean(raw.is_owner ?? raw.isOwner ?? false)
|
|
61
62
|
};
|
|
62
63
|
}
|
|
63
64
|
function OcSessionProvider({
|
|
@@ -924,10 +925,7 @@ function WalletFlow({ authOrigin, audience, onSuccess }) {
|
|
|
924
925
|
}
|
|
925
926
|
let adapter;
|
|
926
927
|
try {
|
|
927
|
-
|
|
928
|
-
adapter = await Function("m", "return import(m)")(
|
|
929
|
-
moduleId
|
|
930
|
-
);
|
|
928
|
+
adapter = await import('@orangecheck/wallet-adapter');
|
|
931
929
|
} catch {
|
|
932
930
|
throw new Error(
|
|
933
931
|
"@orangecheck/wallet-adapter not installed \xB7 add it to your consumer site"
|