New profile() function opens the minimal profile in a compact dialog
iframe and always resolves ('logout' | 'back'), keeping the auth flow's
resolve/reject contract separate and unchanged. The overlay now injects
the host page's computed color-scheme into the iframe URL theme param
when the server has not provided one.
27 lines
492 B
TypeScript
27 lines
492 B
TypeScript
export {
|
|
ApiError,
|
|
NetworkError,
|
|
AuthCancelledError,
|
|
apiFetch,
|
|
apiJson,
|
|
fetchJson,
|
|
getUserFriendlyErrorMessage,
|
|
shouldShowErrorToast,
|
|
createApiCaller,
|
|
} from './fetch'
|
|
|
|
export type { ApiFetchOptions, FetchJsonOptions } from './fetch'
|
|
|
|
export { default as settings } from './settings'
|
|
|
|
export {
|
|
holdGlobalBackdrop,
|
|
releaseGlobalBackdrop,
|
|
isAuthIframeOpen,
|
|
hideAuthIframe,
|
|
showAuthIframe,
|
|
profile,
|
|
} from './overlay'
|
|
|
|
export { SessionValidator } from './validate'
|