Tauri makes it easy to build lightweight, universal desktop apps with web technologies, but protecting your paid app from unauthorized use requires a proper licensing system.
With Keyforge, you can secure your Tauri apps with licenses, including offline verifications, using simple REST API calls. This guide has both JavaScript and Rust examples to help you get started.
When a user opens your app for the first time, prompt them to enter their license key. Then, call the Keyforge activation endpoint to link that license to the user's device.
Use any stable unique identifier, such as a hardware ID, or a persistently
stored UUID.
After activation, store the license key securely (for example, using tauri-plugin-stronghold or MacOS Keychain). This allows your app to re-validate it later without asking the user again.
If users need to use your app without an active internet connection, Keyforge supports offline license validations using signed JWT tokens. Each license can be represented as a signed token that your app securely verifies locally.
You can automate the entire licensing workflow by connecting Stripe to Keyforge. When someone purchases or subscribes to your app, a license is automatically generated and sent to them by email.
Additionally, you can also provide a self-service customer portal where users can view and manage their licenses without any manual work.
With Keyforge, you can easily add secure license protection to your Tauri app in just a few lines of code, helping you monetize and distribute your software.
Use the REST API to activate and validate licenses, give users offline access when needed, and connect Stripe to automate licenses, all without maintaining your own backend.
Simplify your licensing process
Focus on building your product and let us handle licensing. Generate license keys via Stripe and offer your customers a smooth self-serve experience.