Web SDK
The Web SDK is a collection of functions that can be used to interact with the ComPilot Widget from any web application.
There is also a React SDK that can be used in React projects.
Installation
The Web SDK can be installed with yarn
, npm
, or pnpm
.
- yarn
- npm
- pnpm
yarn add @compilot/web-sdk
npm install @compilot/web-sdk
pnpm add @compilot/web-sdk
Usage
For information about using the Web SDK, see ComPilot SDKs
Modules
- actions
- actions/authenticate
- actions/closeWidget
- actions/disconnect
- actions/getAuthAdapter
- actions/getCustomerStatus
- actions/getTxAuthDataSignature
- actions/isAuthenticated
- actions/isLoading
- actions/isOpen
- actions/load
- actions/openWidget
- actions/setAuthAdapter
- actions/unload
- actions/watchCustomerStatus
- actions/watchIsAuthenticated
- actions/watchWidgetVisibleState
- configuration
- configuration/AuthAdapter
- configuration/createAuthAdapter
- configuration/createConfig
- configuration/createWeb3AuthAdapter
- configuration/Web3Wallet
- errors
- errors/AddressUndefinedButRequiredForLogin
- errors/InvalidConfiguration
- errors/SdkCallbackNotDefined
- errors/SessionDataIncompleteError
- errors/Web3AuthRequiredForThisAction
- errors/Web3SignatureRejected
- utils
- utils/actionTypes
- utils/createEmitter
- utils/createEmitter.test
- utils/createIframeHandler
- utils/createStore
- utils/createStore.test
- utils/getSessionData
- utils/internal