Kisi bhi external website, store ya panel ko is auth server se jodo. Neeche live server URL, endpoints aur copy-paste code hai.
Ye wahi base URL hai jo aapki website ke backend ko use karna hai. (Local testing par http://127.0.0.1:2011, production par Render URL.)
https://www.eliteauth.online/SDK / loader endpoints app credentials (name + ownerId + secret) maangte hain. REST v1 endpoints API key (x-api-key) maangte hain.
| Method | Endpoint | Kaam | Auth |
|---|---|---|---|
| POST | / | KeyAuth protocol (init / login / register) | app secret |
| POST | /api/sdk/user-login | JSON login | app secret |
| POST | /api/sdk/register | Key se account register | app secret |
| POST | /api/sdk/heartbeat | Session alive check | session token |
| POST | /api/v1/keys/generate | Nayi license key banao | x-api-key |
| POST | /api/v1/keys/verify | Key valid hai ya nahi | x-api-key |
| POST | /api/v1/users/create | User account banao | x-api-key |
| POST | /api/v1/users/ban / unban | User ban / unban | x-api-key |
| GET | /api/v1/overview | Account stats | x-api-key |
Secret aur API key sirf server par rakho — browser JS mein kabhi nahi.
const AUTH = "https://www.eliteauth.online";
// 1) Login verify
const login = await fetch(`${AUTH}/api/sdk/user-login`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
name: "AURA PREMIUM",
ownerId: "3SZAPCN9MV",
secret: process.env.ELITE_APP_SECRET,
username, password,
hwid: deviceId
})
}).then(r => r.json());
// 2) Purchase ke baad key generate
const keyRes = await fetch(`${AUTH}/api/v1/keys/generate`, {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": process.env.ELITE_API_KEY
},
body: JSON.stringify({ days: 30, count: 1, notes: "Website order" })
}).then(r => r.json());
AUTH_BASE_URL, ELITE_API_KEY, ELITE_APP_SECRET.elitereselling.online already allowed hai).