-
Install dependencies:
pnpm install
-
Run example:
pnpm dev
- Duplicate and rename
src/configs/default-config.ts
- On the duplicated file change default configuration
- Skip 3. and 4. if you're not using our backend
- Generate a JWT
curl --location --request POST 'https://api.ballerine.io/v2/create-enduser-token' \
--header 'Content-Type: application/json' \
--header 'Authorization: Api-Key [API_KEY]' \
--data-raw '{
"endUserId": "[ENDUSER_ID]",
"clientId": "[CLIENT_ID]"
}'
- Add the JWT to the init config under
backendConfig.auth.auhtorizationHeader
as "Bearer [JWT]" - Import the new configuration and pass it to
init
andmount
functions