Website Integration

Connect Your Website

Kisi bhi external website, store ya panel ko is auth server se jodo. Neeche live server URL, endpoints aur copy-paste code hai.

1. Live Server URL

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.)

BASEhttps://www.eliteauth.online/

2. Endpoints

SDK / loader endpoints app credentials (name + ownerId + secret) maangte hain. REST v1 endpoints API key (x-api-key) maangte hain.

MethodEndpointKaamAuth
POST/KeyAuth protocol (init / login / register)app secret
POST/api/sdk/user-loginJSON loginapp secret
POST/api/sdk/registerKey se account registerapp secret
POST/api/sdk/heartbeatSession alive checksession token
POST/api/v1/keys/generateNayi license key banaox-api-key
POST/api/v1/keys/verifyKey valid hai ya nahix-api-key
POST/api/v1/users/createUser account banaox-api-key
POST/api/v1/users/ban / unbanUser ban / unbanx-api-key
GET/api/v1/overviewAccount statsx-api-key

3. Server-side Example (Next.js / Node)

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());

4. Connect karne ke steps

1
Dashboard → Application banao (AURA PREMIUM) aur API Key generate karo.
2
Website ke backend env mein daalo: AUTH_BASE_URL, ELITE_API_KEY, ELITE_APP_SECRET.
3
Website ke backend se upar wale endpoints call karo (login, register, key generate).
4
Purchase success par key generate karke user ko account/key do.
5
CORS mein website domain add karo (abhi elitereselling.online already allowed hai).
Important: API key / app secret frontend mein mat daalo. Sirf server-side use karo. HTTP ke bajaye hamesha HTTPS use karo.
Open Dashboard → API & SDK Docs