@orangecheck/auth-client 2.33.4 → 2.35.0

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.
Files changed (50) hide show
  1. package/dist/appearance.mjs +23 -0
  2. package/dist/appearance.mjs.map +1 -0
  3. package/dist/bond.mjs +20 -0
  4. package/dist/bond.mjs.map +1 -0
  5. package/dist/chunk-4E7GJ5IB.mjs +1184 -0
  6. package/dist/chunk-4E7GJ5IB.mjs.map +1 -0
  7. package/dist/chunk-7ST4Q5KR.mjs +346 -0
  8. package/dist/chunk-7ST4Q5KR.mjs.map +1 -0
  9. package/dist/chunk-7UYPMTAV.mjs +652 -0
  10. package/dist/chunk-7UYPMTAV.mjs.map +1 -0
  11. package/dist/chunk-BYAF2P2L.mjs +253 -0
  12. package/dist/chunk-BYAF2P2L.mjs.map +1 -0
  13. package/dist/chunk-CYR7J4UY.mjs +118 -0
  14. package/dist/chunk-CYR7J4UY.mjs.map +1 -0
  15. package/dist/chunk-H2TXOCXH.mjs +23 -0
  16. package/dist/chunk-H2TXOCXH.mjs.map +1 -0
  17. package/dist/chunk-HZ4FJMF3.mjs +490 -0
  18. package/dist/chunk-HZ4FJMF3.mjs.map +1 -0
  19. package/dist/chunk-TJJNTITX.mjs +187 -0
  20. package/dist/chunk-TJJNTITX.mjs.map +1 -0
  21. package/dist/chunk-UFRU3I3D.mjs +913 -0
  22. package/dist/chunk-UFRU3I3D.mjs.map +1 -0
  23. package/dist/chunk-VRLFZAGK.mjs +37 -0
  24. package/dist/chunk-VRLFZAGK.mjs.map +1 -0
  25. package/dist/chunk-XCZVSE7M.mjs +40 -0
  26. package/dist/chunk-XCZVSE7M.mjs.map +1 -0
  27. package/dist/components.mjs +19 -0
  28. package/dist/components.mjs.map +1 -0
  29. package/dist/index.js +77 -67
  30. package/dist/index.js.map +1 -1
  31. package/dist/index.mjs +112 -4001
  32. package/dist/index.mjs.map +1 -1
  33. package/dist/linked-identities.mjs +41 -0
  34. package/dist/linked-identities.mjs.map +1 -0
  35. package/dist/provider.mjs +17 -0
  36. package/dist/provider.mjs.map +1 -0
  37. package/dist/return-to.mjs +18 -0
  38. package/dist/return-to.mjs.map +1 -0
  39. package/dist/signin.mjs +23 -0
  40. package/dist/signin.mjs.map +1 -0
  41. package/dist/sudo.mjs +16 -0
  42. package/dist/sudo.mjs.map +1 -0
  43. package/dist/tab-session.mjs +29 -0
  44. package/dist/tab-session.mjs.map +1 -0
  45. package/dist/types.mjs +17 -0
  46. package/dist/types.mjs.map +1 -0
  47. package/dist/webauthn.mjs +15 -0
  48. package/dist/webauthn.mjs.map +1 -0
  49. package/package.json +2 -1
  50. package/dist/index.d.mts +0 -303
@@ -0,0 +1,41 @@
1
+ "use client";
2
+ import {
3
+ ErrorLine,
4
+ FormButtons,
5
+ LazyWalletButton,
6
+ LinkPromptStep,
7
+ OcLinkedIdentities,
8
+ SectionLabel,
9
+ V,
10
+ bodyStyle,
11
+ dangerBtnStyle,
12
+ fetchOcLinkedIdentities,
13
+ ghostBtnStyle,
14
+ hintStyle,
15
+ inputStyle,
16
+ panelStyle,
17
+ primaryBtnStyle
18
+ } from "./chunk-UFRU3I3D.mjs";
19
+ import "./chunk-XCZVSE7M.mjs";
20
+ import "./chunk-H2TXOCXH.mjs";
21
+ import "./chunk-VRLFZAGK.mjs";
22
+ import "./chunk-CYR7J4UY.mjs";
23
+ import "./chunk-TJJNTITX.mjs";
24
+ export {
25
+ ErrorLine,
26
+ FormButtons,
27
+ LazyWalletButton,
28
+ LinkPromptStep,
29
+ OcLinkedIdentities,
30
+ SectionLabel,
31
+ V,
32
+ bodyStyle,
33
+ dangerBtnStyle,
34
+ fetchOcLinkedIdentities,
35
+ ghostBtnStyle,
36
+ hintStyle,
37
+ inputStyle,
38
+ panelStyle,
39
+ primaryBtnStyle
40
+ };
41
+ //# sourceMappingURL=linked-identities.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,17 @@
1
+ import {
2
+ OcSessionProvider,
3
+ useOcSession,
4
+ useOptionalOcSession
5
+ } from "./chunk-7ST4Q5KR.mjs";
6
+ import {
7
+ DEFAULT_CONFIG
8
+ } from "./chunk-VRLFZAGK.mjs";
9
+ import "./chunk-CYR7J4UY.mjs";
10
+ import "./chunk-TJJNTITX.mjs";
11
+ export {
12
+ DEFAULT_CONFIG,
13
+ OcSessionProvider,
14
+ useOcSession,
15
+ useOptionalOcSession
16
+ };
17
+ //# sourceMappingURL=provider.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,18 @@
1
+ import {
2
+ FRAGMENT_TTL_MS,
3
+ keepFragmentOnReturnLinks,
4
+ restoreReturnFragment,
5
+ returnToHere,
6
+ stripFragment,
7
+ withoutFragment
8
+ } from "./chunk-CYR7J4UY.mjs";
9
+ import "./chunk-TJJNTITX.mjs";
10
+ export {
11
+ FRAGMENT_TTL_MS,
12
+ keepFragmentOnReturnLinks,
13
+ restoreReturnFragment,
14
+ returnToHere,
15
+ stripFragment,
16
+ withoutFragment
17
+ };
18
+ //# sourceMappingURL=return-to.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,23 @@
1
+ import {
2
+ OcSignIn,
3
+ familyReturnTarget,
4
+ humanSigninError,
5
+ looksLikeBitcoinAddress,
6
+ networkError,
7
+ safeReturnTo
8
+ } from "./chunk-4E7GJ5IB.mjs";
9
+ import "./chunk-UFRU3I3D.mjs";
10
+ import "./chunk-XCZVSE7M.mjs";
11
+ import "./chunk-H2TXOCXH.mjs";
12
+ import "./chunk-VRLFZAGK.mjs";
13
+ import "./chunk-CYR7J4UY.mjs";
14
+ import "./chunk-TJJNTITX.mjs";
15
+ export {
16
+ OcSignIn,
17
+ familyReturnTarget,
18
+ humanSigninError,
19
+ looksLikeBitcoinAddress,
20
+ networkError,
21
+ safeReturnTo
22
+ };
23
+ //# sourceMappingURL=signin.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/dist/sudo.mjs ADDED
@@ -0,0 +1,16 @@
1
+ import {
2
+ SUDO_ACCOUNT_MISMATCH_MESSAGE,
3
+ handleSudoRequired,
4
+ isSudoAccountMismatch,
5
+ redirectToSudo
6
+ } from "./chunk-XCZVSE7M.mjs";
7
+ import "./chunk-VRLFZAGK.mjs";
8
+ import "./chunk-CYR7J4UY.mjs";
9
+ import "./chunk-TJJNTITX.mjs";
10
+ export {
11
+ SUDO_ACCOUNT_MISMATCH_MESSAGE,
12
+ handleSudoRequired,
13
+ isSudoAccountMismatch,
14
+ redirectToSudo
15
+ };
16
+ //# sourceMappingURL=sudo.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,29 @@
1
+ import {
2
+ TAB_ACCOUNT_HINT_KEY,
3
+ TAB_ADOPT_HASH,
4
+ TAB_SESSION_HEADER,
5
+ TAB_SESSION_STORAGE_KEY,
6
+ clearTabSession,
7
+ consumeTabAccountHint,
8
+ consumeTabAdoptMarker,
9
+ installTabFetchInterceptor,
10
+ installTabLinkDecorator,
11
+ readTabSession,
12
+ tabSessionHeader,
13
+ writeTabSession
14
+ } from "./chunk-TJJNTITX.mjs";
15
+ export {
16
+ TAB_ACCOUNT_HINT_KEY,
17
+ TAB_ADOPT_HASH,
18
+ TAB_SESSION_HEADER,
19
+ TAB_SESSION_STORAGE_KEY,
20
+ clearTabSession,
21
+ consumeTabAccountHint,
22
+ consumeTabAdoptMarker,
23
+ installTabFetchInterceptor,
24
+ installTabLinkDecorator,
25
+ readTabSession,
26
+ tabSessionHeader,
27
+ writeTabSession
28
+ };
29
+ //# sourceMappingURL=tab-session.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/dist/types.mjs ADDED
@@ -0,0 +1,17 @@
1
+ import {
2
+ DEFAULT_CONFIG,
3
+ DISPLAY_IDENTITY_KINDS,
4
+ buildAddAccountUrl,
5
+ buildSignInUrl,
6
+ resolveConfig
7
+ } from "./chunk-VRLFZAGK.mjs";
8
+ import "./chunk-CYR7J4UY.mjs";
9
+ import "./chunk-TJJNTITX.mjs";
10
+ export {
11
+ DEFAULT_CONFIG,
12
+ DISPLAY_IDENTITY_KINDS,
13
+ buildAddAccountUrl,
14
+ buildSignInUrl,
15
+ resolveConfig
16
+ };
17
+ //# sourceMappingURL=types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,15 @@
1
+ import {
2
+ useStepUpAuth,
3
+ useWebAuthnList,
4
+ useWebAuthnRegister
5
+ } from "./chunk-BYAF2P2L.mjs";
6
+ import "./chunk-7ST4Q5KR.mjs";
7
+ import "./chunk-VRLFZAGK.mjs";
8
+ import "./chunk-CYR7J4UY.mjs";
9
+ import "./chunk-TJJNTITX.mjs";
10
+ export {
11
+ useStepUpAuth,
12
+ useWebAuthnList,
13
+ useWebAuthnRegister
14
+ };
15
+ //# sourceMappingURL=webauthn.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orangecheck/auth-client",
3
- "version": "2.33.4",
3
+ "version": "2.35.0",
4
4
  "description": "React hooks and components for the cross-subdomain oc_session. Drop-in sign-in button, account chip with dashboard link, session-aware address input, and useOcSession() hook.",
5
5
  "keywords": [
6
6
  "orangecheck",
@@ -24,6 +24,7 @@
24
24
  "main": "./dist/index.js",
25
25
  "module": "./dist/index.mjs",
26
26
  "types": "./dist/index.d.ts",
27
+ "sideEffects": false,
27
28
  "exports": {
28
29
  ".": {
29
30
  "types": "./dist/index.d.ts",
package/dist/index.d.mts DELETED
@@ -1,303 +0,0 @@
1
- import * as React from 'react';
2
-
3
- declare const DISPLAY_IDENTITY_KINDS: readonly ["did", "btc", "email", "nostr"];
4
- type DisplayIdentityKind = (typeof DISPLAY_IDENTITY_KINDS)[number];
5
- interface DisplayIdentity {
6
- kind: DisplayIdentityKind;
7
- value: string;
8
- }
9
- interface OcAccount {
10
- accountId: string;
11
- didOc: string;
12
- primaryBtc?: string | null;
13
- hasEmail?: boolean;
14
- displayName?: string | null;
15
- nostrNpub?: string | null;
16
- homeFederation?: string | null;
17
- signingMethod?: 'fedimint_threshold' | 'fedimint_client' | 'bip322' | null;
18
- isOwner?: boolean;
19
- displayIdentity: DisplayIdentity;
20
- }
21
- type OcSessionStatus = 'loading' | 'authenticated' | 'anonymous' | 'error';
22
- interface OcAccountSummary {
23
- didOc: string;
24
- displayName: string | null;
25
- primaryBtc: string | null;
26
- displayIdentity: DisplayIdentity;
27
- lastSeenAt: string | null;
28
- }
29
- type OcSignOutScope = 'all' | 'current';
30
- interface OcSessionState {
31
- status: OcSessionStatus;
32
- account: OcAccount | null;
33
- roster: OcAccountSummary[];
34
- tabPinned: boolean;
35
- error: Error | null;
36
- refresh: () => Promise<void>;
37
- signOut: (opts?: {
38
- scope?: OcSignOutScope;
39
- }) => Promise<void>;
40
- switchAccount: (didOc: string) => Promise<void>;
41
- addAccountUrl: (returnTo?: string) => string;
42
- setDisplayIdentity: (kind: DisplayIdentityKind) => Promise<void>;
43
- signInUrl: string;
44
- }
45
- interface OcAuthConfig {
46
- authOrigin?: string;
47
- signInPath?: string;
48
- mePath?: string;
49
- logoutPath?: string;
50
- multiAccount?: boolean;
51
- }
52
- declare const DEFAULT_CONFIG: Required<OcAuthConfig>;
53
- declare function buildSignInUrl(cfg: Required<OcAuthConfig>, returnTo?: string): string;
54
- declare function buildAddAccountUrl(cfg: Required<OcAuthConfig>, returnTo?: string): string;
55
-
56
- interface OcSessionProviderProps {
57
- children: React.ReactNode;
58
- config?: OcAuthConfig;
59
- defaultReturnTo?: string;
60
- }
61
- declare function OcSessionProvider({ children, config, defaultReturnTo, }: OcSessionProviderProps): React.ReactElement;
62
- declare function useOcSession(): OcSessionState;
63
- declare function useOptionalOcSession(): OcSessionState | null;
64
-
65
- interface OcAccountChipProps {
66
- dashboardUrl?: string;
67
- signInUrl?: string;
68
- signInLabel?: string;
69
- className?: string;
70
- triggerClassName?: string;
71
- popoverClassName?: string;
72
- menuItemClassName?: string;
73
- }
74
- declare function OcAccountChip({ dashboardUrl, signInUrl: signInUrlOverride, signInLabel, className, triggerClassName, popoverClassName, menuItemClassName, }: OcAccountChipProps): React.ReactElement | null;
75
- interface OcSignInButtonProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
76
- label?: string;
77
- eager?: boolean;
78
- signInUrl?: string;
79
- }
80
- declare function OcSignInButton({ label, eager, className, signInUrl: signInUrlOverride, ...rest }: OcSignInButtonProps): React.ReactElement | null;
81
- interface OcAccountPillProps extends React.HTMLAttributes<HTMLDivElement> {
82
- dashboardUrl?: string;
83
- render?: (account: {
84
- address: string;
85
- displayName?: string | null;
86
- }) => React.ReactNode;
87
- }
88
- declare function OcAccountPill({ dashboardUrl, render, className, ...rest }: OcAccountPillProps): React.ReactElement | null;
89
- interface OcAddressInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'> {
90
- value: string;
91
- onValueChange: (value: string) => void;
92
- suggestionLabel?: string;
93
- wrapperClassName?: string;
94
- popoverClassName?: string;
95
- suggestionClassName?: string;
96
- }
97
- interface UseOcAddressSuggestionOptions {
98
- value: string;
99
- onValueChange: (value: string) => void;
100
- suggestionLabel?: string;
101
- popoverClassName?: string;
102
- suggestionClassName?: string;
103
- }
104
- interface UseOcAddressSuggestionReturn {
105
- inputProps: {
106
- onFocus: (e: React.FocusEvent<HTMLInputElement>) => void;
107
- onBlur: (e: React.FocusEvent<HTMLInputElement>) => void;
108
- onKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void;
109
- role: 'combobox';
110
- 'aria-haspopup': 'listbox';
111
- 'aria-expanded': boolean;
112
- 'aria-controls': string | undefined;
113
- 'aria-activedescendant': string | undefined;
114
- autoComplete: 'off';
115
- spellCheck: false;
116
- };
117
- popover: React.ReactNode;
118
- }
119
- declare function useOcAddressSuggestion(options: UseOcAddressSuggestionOptions): UseOcAddressSuggestionReturn;
120
- declare const OcAddressInput: React.ForwardRefExoticComponent<OcAddressInputProps & React.RefAttributes<HTMLInputElement>>;
121
-
122
- interface OcSignInBaseProps {
123
- audience: string;
124
- returnTo?: string;
125
- onSuccess?: (account: OcAccount, token?: string) => void;
126
- resolveReturnTo?: (account: OcAccount) => string | Promise<string>;
127
- authOrigin?: string;
128
- initialPath?: 'wallet' | 'email';
129
- providersFirst?: boolean;
130
- paths?: {
131
- wallet?: boolean;
132
- email?: boolean;
133
- };
134
- linkPrompt?: boolean;
135
- add?: boolean;
136
- className?: string;
137
- }
138
- type OcSignInProps = OcSignInBaseProps & ({
139
- mode?: 'family';
140
- providerHref?: undefined;
141
- } | {
142
- mode: 'first-party';
143
- onSuccess: (account: OcAccount, token?: string) => void;
144
- providerHref?: (providerId: string) => string;
145
- });
146
- declare function safeReturnTo(input: string | undefined): string;
147
- declare function familyReturnTarget(input: string | undefined | null): string | undefined;
148
- declare function OcSignIn({ audience, returnTo, onSuccess, resolveReturnTo, linkPrompt: linkPromptProp, add: addProp, authOrigin, initialPath, providersFirst, paths, className, mode, providerHref, }: OcSignInProps): React.ReactElement;
149
-
150
- interface OcLinkedIdentity {
151
- id: string;
152
- kind: 'email' | 'btc';
153
- value: string | null;
154
- verified_at: string | null;
155
- verification_method: 'email-otp' | 'bip322' | null;
156
- is_primary: boolean;
157
- }
158
- declare function fetchOcLinkedIdentities(opts?: {
159
- authOrigin?: string;
160
- }): Promise<OcLinkedIdentity[]>;
161
- interface OcLinkedIdentitiesProps {
162
- authOrigin?: string;
163
- className?: string;
164
- onChange?: () => void;
165
- attestationLink?: boolean;
166
- }
167
- declare function OcLinkedIdentities({ authOrigin, className, onChange, attestationLink, }: OcLinkedIdentitiesProps): React.ReactElement;
168
-
169
- interface Floors {
170
- sats_floor: number;
171
- days_floor: number;
172
- }
173
- interface OcBondView extends Floors {
174
- address: string;
175
- outpoint: string;
176
- sats: number;
177
- confirmed_height: number;
178
- checked_at: string;
179
- checked_height: number;
180
- created_at: string;
181
- }
182
- interface OcBondProps {
183
- authOrigin?: string;
184
- onChange?: (bond: OcBondView | null) => void;
185
- className?: string;
186
- }
187
- declare function bondFloorsText(f: Floors): string;
188
- declare function fetchOcBond(opts?: {
189
- authOrigin?: string;
190
- }): Promise<OcBondView | null>;
191
- declare function OcBond({ authOrigin, onChange, className, }: OcBondProps): React.ReactElement;
192
-
193
- declare const FRAGMENT_TTL_MS: number;
194
- declare function stripFragment(target: string): string;
195
- declare function withoutFragment(target: string): string;
196
- declare function returnToHere(): string;
197
- declare function keepFragmentOnReturnLinks(): () => void;
198
- declare function restoreReturnFragment(): boolean;
199
-
200
- declare const TAB_SESSION_HEADER = "x-oc-tab-session";
201
- declare const TAB_SESSION_STORAGE_KEY = "oc_tab_session";
202
- declare const TAB_ACCOUNT_HINT_KEY = "oc-as";
203
- declare const TAB_ADOPT_HASH = "#oc-adopt";
204
- interface OcTabSession {
205
- token: string;
206
- didOc: string;
207
- }
208
- declare function readTabSession(): OcTabSession | null;
209
- declare function writeTabSession(session: OcTabSession): void;
210
- declare function clearTabSession(): void;
211
- declare function tabSessionHeader(): Record<string, string>;
212
- declare function installTabFetchInterceptor(authOrigin: string): () => void;
213
- declare function consumeTabAdoptMarker(): boolean;
214
- declare function installTabLinkDecorator(authOrigin: string): () => void;
215
- declare function consumeTabAccountHint(authOrigin: string): Promise<string | null>;
216
-
217
- interface WebAuthnCredentialPublic {
218
- id: string;
219
- label: string;
220
- authenticator_type: 'platform' | 'cross-platform' | 'unknown';
221
- transports: string[];
222
- user_verified: boolean;
223
- created_at: string;
224
- last_used_at: string | null;
225
- }
226
- type WebAuthnRegisterStatus = 'idle' | 'requesting-options' | 'authenticating' | 'verifying' | 'success' | 'error';
227
- type WebAuthnAssertionStatus = WebAuthnRegisterStatus;
228
- type WebAuthnListStatus = 'loading' | 'ready' | 'error';
229
- interface UseHostOptions {
230
- authOrigin?: string;
231
- }
232
- type WebAuthnRegisterResult = {
233
- ok: true;
234
- credential: WebAuthnCredentialPublic;
235
- } | {
236
- ok: false;
237
- reason: string;
238
- };
239
- interface UseWebAuthnRegisterReturn {
240
- status: WebAuthnRegisterStatus;
241
- error: Error | null;
242
- register: (args?: {
243
- label?: string;
244
- }) => Promise<WebAuthnRegisterResult>;
245
- reset: () => void;
246
- }
247
- declare function useWebAuthnRegister(opts?: UseHostOptions): UseWebAuthnRegisterReturn;
248
- type WebAuthnRenameResult = {
249
- ok: true;
250
- credential: WebAuthnCredentialPublic;
251
- } | {
252
- ok: false;
253
- reason: string;
254
- };
255
- type WebAuthnRemoveResult = {
256
- ok: true;
257
- } | {
258
- ok: false;
259
- reason: string;
260
- };
261
- interface UseWebAuthnListReturn {
262
- status: WebAuthnListStatus;
263
- credentials: WebAuthnCredentialPublic[];
264
- error: Error | null;
265
- refetch: () => Promise<void>;
266
- rename: (id: string, label: string) => Promise<WebAuthnRenameResult>;
267
- remove: (id: string) => Promise<WebAuthnRemoveResult>;
268
- }
269
- declare function useWebAuthnList(opts?: UseHostOptions): UseWebAuthnListReturn;
270
- type WebAuthnStepUpResult = {
271
- ok: true;
272
- step_up_at: number;
273
- } | {
274
- ok: false;
275
- reason: string;
276
- };
277
- interface UseStepUpAuthReturn {
278
- status: WebAuthnAssertionStatus;
279
- error: Error | null;
280
- stepUp: (args: {
281
- purpose: string;
282
- }) => Promise<WebAuthnStepUpResult>;
283
- reset: () => void;
284
- }
285
- declare function useStepUpAuth(opts?: UseHostOptions): UseStepUpAuthReturn;
286
-
287
- interface RedirectToSudoArgs {
288
- returnTo?: string;
289
- purpose?: string;
290
- config?: OcAuthConfig;
291
- }
292
- declare function redirectToSudo(args?: RedirectToSudoArgs): void;
293
- declare function handleSudoRequired(body: {
294
- reason?: string;
295
- } | null | undefined, args?: Omit<RedirectToSudoArgs, 'returnTo'> & {
296
- returnTo?: string;
297
- }): boolean;
298
- declare const SUDO_ACCOUNT_MISMATCH_MESSAGE = "Switch this tab to that account first \u2014 the confirmation on file is for a different one.";
299
- declare function isSudoAccountMismatch(body: {
300
- reason?: string;
301
- } | null | undefined): boolean;
302
-
303
- export { DEFAULT_CONFIG, DISPLAY_IDENTITY_KINDS, type DisplayIdentity, type DisplayIdentityKind, FRAGMENT_TTL_MS, type OcAccount, OcAccountChip, type OcAccountChipProps, OcAccountPill, type OcAccountPillProps, type OcAccountSummary, OcAddressInput, type OcAddressInputProps, type OcAuthConfig, OcBond, type OcBondProps, type OcBondView, OcLinkedIdentities, type OcLinkedIdentitiesProps, type OcLinkedIdentity, OcSessionProvider, type OcSessionState, type OcSessionStatus, OcSignIn, OcSignInButton, type OcSignInButtonProps, type OcSignInProps, type OcSignOutScope, type OcTabSession, type RedirectToSudoArgs, SUDO_ACCOUNT_MISMATCH_MESSAGE, TAB_ACCOUNT_HINT_KEY, TAB_ADOPT_HASH, TAB_SESSION_HEADER, TAB_SESSION_STORAGE_KEY, type UseOcAddressSuggestionOptions, type UseOcAddressSuggestionReturn, type UseStepUpAuthReturn, type UseWebAuthnListReturn, type UseWebAuthnRegisterReturn, type WebAuthnAssertionStatus, type WebAuthnCredentialPublic, type WebAuthnListStatus, type WebAuthnRegisterResult, type WebAuthnRegisterStatus, type WebAuthnRemoveResult, type WebAuthnRenameResult, type WebAuthnStepUpResult, bondFloorsText, buildAddAccountUrl, buildSignInUrl, clearTabSession, consumeTabAccountHint, consumeTabAdoptMarker, familyReturnTarget, fetchOcBond, fetchOcLinkedIdentities, handleSudoRequired, installTabFetchInterceptor, installTabLinkDecorator, isSudoAccountMismatch, keepFragmentOnReturnLinks, readTabSession, redirectToSudo, restoreReturnFragment, returnToHere, safeReturnTo, stripFragment, tabSessionHeader, useOcAddressSuggestion, useOcSession, useOptionalOcSession, useStepUpAuth, useWebAuthnList, useWebAuthnRegister, withoutFragment, writeTabSession };