Add Javascript SDK to your Front-end
First, install@membranehq/sdk NPM package:
You will need to replace it with a real authentication token later (see Authentication). To verify that everything works, let’s open our drop-in integration UI:
Dynamic Token
If it is more convenient for you to fetch token dynamically instead of providing static value, you can usefetchToken instead: