This demo illustrates how to connect to a MagTek device and process the data from a scanned Qwantum Token. **Specifically, this application is designed for tokens formatted as QR Codes or NFC Tags that utilize either TOTP (Time-based One-Time Password) or OTC (One-Time Code) technology.** This workflow immediately retrieves and displays the token's associated claims, owner information, and usage count in real-time.
Note: You must have a compatible MagTek device connected to your computer to run this demonstration.
Before scanning any tokens, you must establish a connection to the device:
Unlike a standard USB-connected Dyna reader, the MQTT version of this demo requires identifying the specific Dev path of your MQTT-configured reader. This Dev path must be appended to the end of the base URL to establish a successful connection.
https://rms.magensa.net/Token/DisplayClaims/mqtt.html? followed by your reader's unique Dev path to the end of the base URL.https://rms.magensa.net/Token/DisplayClaims/mqtt.html?MagTek/US/PA/Paoli/AndyD/DynaFlexIIGo/Andy-B59D5C5As long as the appended Dev path is a valid path to that MQTT-configured reader, the demo app will successfully connect and read the Qwantum Tokens.
Once the device is connected, the application is ready to receive token data:
If the scanned Token requires additional verification:
After a successful scan, the main panel will populate with the token's associated data:
The Transaction Log provides an essential audit trail and debugging tool:
This demonstration executes API calls directly from the client-side (browser) to illustrate functionality within a standalone environment. This architecture is not intended for production use. In a live production environment, all API interactions should be routed through a secure backend server (server-side proxy) to protect API keys and sensitive credentials from being exposed in the browser.
To provide a transparent view of the data flow, this demo implements direct client-to-API communication. Please be advised that this pattern exposes authentication tokens to the front end. Production implementations should utilize a Backend-for-Frontend (BFF) pattern or server-side SDKs to ensure security compliance and credential protection.
For further assistance or to discuss customizing your token configuration, please contact MagTek support.