This guide shows how to bind licenses to an external identity (Telegram/Discord user ID, account ID, etc.) by setting SDK HWID override fields.Documentation Index
Fetch the complete documentation index at: https://docs.authforge.cc/llms.txt
Use this file to discover all available pages before exploring further.
When to use this
Use HWID override when device fingerprinting is the wrong abstraction:- bot users
- web users
- cloud workers
- multi-tenant service identities
Flow
- User requests access in your app/bot.
- Prompt for a license key.
- Build a stable identity string (for example
tg:123456789). - Initialize SDK with HWID override set to that identity.
- Call
validateLicense()/validate_license/ValidateLicense(orlogin()if you want a long-lived session and heartbeats). - Allow features only after success.
/auth/validate flow and signature verification as login without starting heartbeat threads or timers.
Identity format and rules
- Include a provider prefix (
tg:,discord:,user:). - Use immutable IDs (platform numeric user IDs), not usernames.
- Keep values under AuthForge limits (short strings are best).
SDK examples
Node
Python
Go
C#
Rust
C++
Operational tips
- Set sensible
maxHwidSlotsfor your use case (often1for user-bound bots). - Provide a support flow to reset bindings when users migrate accounts.
- If abuse is expected, combine with IP/HWID security lists and command rate limits.