moonbase
License activation for desktop apps against Moonbase: browser and offline activation, local RS256 validation with an offline grace period, revocation, trials, add-ons, licenses that cover only some versions, update checks, pluggable storage and HTTP, and the cross-SDK device fingerprint, so a license activated through any Moonbase SDK validates here too.
The Rust port of moonbase-cpp.
use ;
use ;
let licensing = builder
.store
.build?;
// Validate what is stored, re-checking online when it is due.
if let Some = licensing.load_and_validate? else
The API is blocking; call it from a worker thread or spawn_blocking in async code.
- Guide
- Device identity
- Security
- For Tauri apps:
tauri-plugin-moonbase
Examples
License: MIT