Web
Follow this guide to integrate Portal in your web app.
Last updated
Was this helpful?
Follow this guide to integrate Portal in your web app.
Last updated
Was this helpful?
Portal provides MPC wallets and dApp connections for organizations and their users.
To integrate Portal, an organization adds a client library to their web app, configures a CNAME
record, and adds a few server API endpoints.
The basic Portal setup consists of a single packages:
@portal-hq/web
- The core Portal library
This allows you to initialize Portal
in your app. We recommend only initializing one Portal instance per user.
Follow this guide to gather all of the credentials you need to .
The Web SDK uses the to properly type interaction with the DOM. Update your TSConfig file to include this:
We recommend only initializing one Portal instance per user. Do not modify portal.apiKey
directly.
In order to support usage on Safari or other browsers with third-party cookie restrictions, you need to configure a custom subdomain for the Portal Web API.
Follow the instructions in our Configure a custom subdomain guide to complete setup for the Web SDK!
If you are using , this hint is for you.
The Web SDK leverages our for efficient MPC operation performance. Utilizing confidential computing using , the Enclave MPC API provides the same MPC client-server distribution of responsibilities with the speed and efficiency of server side compute.