Create a “Pre-approved transaction” token.
Since the user is interacting with the Fluz platform to move money in and out of your spend account, any interaction with the widget must include a signed JWT token that effectively “pre-authorizes” the user to complete the transaction. What this means is, for instance, if user “abc123” has $50 in their operator account that they wish to withdraw to Fluz, you generate apatToken that Fluz can use to validate the transaction and amount. This patToken contains the amount, your apiKey, the transactionType, the externalId, user data, and then a JTI. This token is signed with your apiSecret that can be found in your app details in the for-developers section of Fluz.
Code snippets to generate the JWT
JavaScript
Ruby
Installation:gem install jwt
Python
Installation:pip install PyJWT