V2 to V3
This guide moves an app from a V2 SDK (the one that takes an owner ID, app name, version and secret) to V3. Your application, its users, licenses and settings stay exactly where they are. Only the code in your program changes.
If your app still calls /api/v1/ or uses a V1 build, read V1 to V3 instead.
What changes and what stays
Your V2 releases keep working while you move. The V2 API stays online for them, and both versions read the same records, so a ban in the dashboard applies to both.
The steps
- Copy your AppKey from the dashboard.
- Replace the V2 SDK file or package with the V3 one.
- Change the line that creates the client.
- Rename the methods you call, using the table below.
- Replace every
app.responsecheck with the result or error of the call. - Update the code that reads
userData. - Raise your version number, add it to Allowed Versions and test with a test license.
Each step is explained below, with full before and after code for every language at the end.
1. Copy your AppKey
Open the dashboard, go to your application and copy its AppKey from the credentials section. It replaces the owner ID, app name and secret. Keep using the version number you already ship; V3 still checks it against Allowed Versions. See App credentials.
2. Replace the SDK
Remove the old file completely. Keeping both in one project leads to name clashes and confusing errors. The SDK downloads page has every V3 SDK, and each language has a full guide.
3. Create the client
The V2 antiDebug argument is gone. C# still accepts debug and api as named options. In the other languages, settings such as timeouts and update prompts go in an options object, listed at the end of each language guide.
4. Rename the methods
V2 used PascalCase in most languages. V3 uses the same camelCase names everywhere, except Go, which keeps Go’s capitalised style.
5. Read results instead of app.response
This is the change that touches the most lines. In V2, every call stored its outcome in one shared object and you read it straight after:
In V3 there is no app.response. Each call gives back its own result. When AuthlyX refuses a sign-in, such as a wrong password, banned user or unknown license, the call raises an error instead, which you catch:
If your compiler says 'AuthlyX' does not contain a definition for 'response' or class "AuthlyX" has no member "response", that line is V2 code still waiting to be changed.
init() is the exception: it returns a result with ok set to false for the usual problems (no internet, update required, app paused) instead of raising, so you check it with if (!started.ok).
V3 calls also do not block your window. V2 waited for the network on the calling thread; V3 C#, Python, JavaScript and TypeScript use await, C++ and Java return futures, and every SDK has callback forms for GUI apps. The language guides show each style.
6. Update the account details
V2 filled app.userData with text fields. V3 keeps userData, but the names follow one pattern in every language and dates and numbers have real types.
How you reach the fields depends on the language:
User data in C++
In V2, userData was a member you read directly. In V3 it is a function: app.userData() returns a copy of the account details. Call it once at the top of each function that needs them, then read from that copy.
V2:
V3:
u is a local copy, so each function declares its own. See User Data for every field.
7. Ship it
- Raise the version in your code, for example from
1.4.0to2.0.0. - In the dashboard, add the new version to Allowed Versions. Keep the old V2 version allowed until your users have updated.
- Sign in with a test license and a test user. Then ban, pause and expire them from the dashboard and check that the app reacts.
- Publish the new build and set your download link so V2 users are offered the update.
Device login is different
V2 device login sent a motherboard or processor serial number (Login(id, null, "motherboard")). V3 deviceLogin() signs in the current Windows user on a device you approved in the dashboard, with no ID to pass. Devices registered by serial number in V2 are not carried over automatically. If you used V2 device login, read Device login and approve your users’ devices again before you release.
Before and after, in every language
Each pair does the same thing: start, sign in with a license key, print the plan and expiry, and read a cloud variable called motd.
C#
C++
Python
JavaScript
TypeScript
Java
Go
Rust
V2:
V3:
V2:
V3:
V2:
V3:
V2:
V3:
V3 uses import, so set "type": "module" in package.json or name the file .mjs.
V2:
V3:
Install the V3 package with npm install authlyx@beta. The import line stays the same.
V2:
V3:
V2:
V3:
V2:
V3:
In these examples licenseKey (or license_key) stands for the text your user typed. Every V3 language guide ends with a complete program that reads it from the console.
What V3 adds
Once you are on V3 you also get:
- Features and metadata per plan and per account
- Offline access for users without internet
- Remote scripts, signed so your app can trust them
- Webhooks for your own server
- Release channels for beta testers
- Built-in update prompts, background session checks and a signed reply for every call
Keep your customers signed in
Use the same license keys and usernames already stored on the application. Passwords carry over, so users sign in to the V3 build with the same details. Do not create a new application for V3, or the existing licenses will not be there.
A V2 session is not a V3 session. The first time a user opens the V3 build, they sign in once. After that, the SDK keeps them signed in in the background.
Test both releases together
- Sign in from the existing V2 release and the new V3 release using separate test accounts.
- Ban a test account and confirm both versions reject it.
- Repeat with pause, expiry and device reset.
- Confirm cloud variables show the same values in both.
- Check Allowed Versions before publishing. Add the new version while keeping the old one allowed for the transition.
- Keep the previous installer available until the new release is proven.
If something goes wrong
Write down the error code and request ID the SDK reports. Stop the rollout, point your download link back to the previous release, and investigate with a test account. Do not restore an older database backup because one client fails: new customer changes may have arrived since that backup.
V2 stays online as Legacy and V1 as End of support. Those labels do not turn anything off. Any future shutdown will be announced with its own date.

