Setup
Configuration
API Keys, create a Publishable API Key from your Bridge Dashboard. These are not masked in the UI, and have a green check next to them.
BE CAREFUL - Do not use a secret API key in your frontend!
BridgeSdkProvider
This component must be rendered as a parent to any other Bridge components or hooks. The config input is defined as:
In your layout.tsx, create a new BridgeLayoutProvider component.
Inside, configure and render the children in the BridgeSdkProvider.
To use the SDK in sandbox, set environment: "sandbox".
To attach your own logger, implement the Logger interface and provide one.
Alternatively, attach the consoleLogger (exported from the SDK package), for debugging.