To enable gasless transactions capabilities for the SmartAccount, the
dappAPIKey variable is required (Gasless Transactions - Biconomy SDK). I have successfully used the API key for Polygon Mumbai that you have provided in my fork of your
sdk-examples repository. You can review the code here: sdk-examples/nextjs-biconomy-web3Auth-nextAuth-siwe at master · sebpalluel/sdk-examples · GitHub.
I have noted that your SDK cannot be used on the server side, and thus, I have ensured that the code using the SDK is only executed on the client side.
However, I am unsure of how to securely provide my own API key. While using an environment variable, such as
NEXT_APP_BICONOMY_API_KEY, is an option, it poses a risk of leaking the key to unauthorized users, which could lead to the depletion of funds from the Paymaster I have deployed on your dashboard.
Do you have any suggestions on how I can safely provide my own API key?
Thank you in advance!