@web3auth/no-modal
Version:
Multi chain wallet aggregator for web3Auth
36 lines (33 loc) • 1.23 kB
JavaScript
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
const WEB3AUTH_CONNECTOR_ID = "web3auth";
const CONNECTOR_STATUS = {
NOT_READY: "not_ready",
READY: "ready",
CONNECTING: "connecting",
CONNECTED: "connected",
DISCONNECTING: "disconnecting",
DISCONNECTED: "disconnected",
ERRORED: "errored",
AUTHORIZED: "authorized",
AUTHORIZING: "authorizing",
CONSENT_REQUIRING: "consent_requiring"
};
const CONNECTOR_EVENTS = _objectSpread(_objectSpread({}, CONNECTOR_STATUS), {}, {
CONNECTOR_DATA_UPDATED: "connector_data_updated",
CACHE_CLEAR: "cache_clear",
CONNECTORS_UPDATED: "connectors_updated",
MFA_ENABLED: "mfa_enabled",
REHYDRATION_ERROR: "rehydration_error",
/** Emitted when the active public `connection` changes without a full reconnect (e.g. account switch). */
CONNECTION_UPDATED: "connection_updated",
CONSENT_ACCEPTED: "consent_accepted"
});
const CONNECTOR_CATEGORY = {
EXTERNAL: "external",
IN_APP: "in_app"
};
const CONNECTOR_INITIAL_AUTHENTICATION_MODE = {
CONNECT_ONLY: "connect-only",
CONNECT_AND_SIGN: "connect-and-sign"
};
export { CONNECTOR_CATEGORY, CONNECTOR_EVENTS, CONNECTOR_INITIAL_AUTHENTICATION_MODE, CONNECTOR_STATUS, WEB3AUTH_CONNECTOR_ID };