🔐
DevByBit
  • 🔐Blackout License Software
    • 👍Installation
      • 💽Dependencies
      • 📮Check Versions
      • 🦰Setting up the bot
      • 💸Setting up the tebex api
      • 🎹Setting up the tinymce
    • ☑️Required Dependencies
    • 💉API Integration
      • Java Integration
      • Javascript Integration
      • PHP Integration
      • Python Integration
      • Lua Integration
      • API Actions Create
        • PHP Integration
        • Java Integration
        • Lua Integration
        • Python Integration
    • 🪝Request
      • 🚩Low
      • 🏳️Normal
      • 🏴High
    • 🔱Permissions
      • 📑List
    • 🪧Version History
    • 🔗Links
      • Demo
      • Information
  • 📚Mongo Manager
  • 🏪Businesses Software's
    • 🏬Mia Account
      • 🔗Links
        • Demo
        • Information
  • 🔑License Software's
    • 🆓Soroly
      • 👍Installation
        • 💽Dependencies
        • 📮Check Versions
        • 🦰Setting up the bot
      • ☑️Dependencies
      • 🔱Permissions
      • 🪧Version History
        • 1.0-beta
      • 🔗Links
        • Demo
        • Information
    • 🔏Solary
      • 👍Installation
        • 💽Dependencies
        • 📮Check Versions
        • 🦰Setting up the bot
        • 🦰Setting up the google auth
        • 🦰Setting up the builtbybit
        • 🦰Setting up the tebex
        • 🦰Setting up the polymart
      • ☑️Dependencies
      • 💉API Integration
        • Front-end
          • Javascript/Typescript
        • Back-end
          • PHP
      • 🔱Permissions
      • 🪧Version History
        • 1.0-beta
      • 🔗Links
        • Demo
        • Information
    • 🔏PrimeLicense
      • 👍Installation
        • 💽Dependencies
        • 📮Check Versions
        • 🦰Setting up the bot
        • 🦰Setting up the google auth
        • 🦰Setting up the builtbybit
        • 🦰Setting up the tebex
        • 🦰Setting up the polymart
      • ☑️Dependencies
      • 💉API Integration
        • Front-end
          • Javascript/Typescript
        • Back-end
          • PHP
      • 🔱Permissions
      • 🪧Version History
        • 1.0-beta
      • 🔗Links
        • Demo
        • Information
    • Ⓜ️Mito
      • 👍Installation
        • 💽Dependencies
        • 📮Check Versions
        • 🦰Setting up the bot
      • ☑️Dependencies
      • 🔱Permissions
        • 🌏Users
        • 📐Moderator
        • 🔱Admin
        • 👑Owner
      • 🪧Version History
        • 1.0-beta
      • 🔗Links
        • Demo
        • Information
  • 🧊Minecraft Web
    • 🖥️Versal
    • 🚫Atomic
      • 🪧Version History
        • 1.0-beta
  • 👮Support
    • Discord Support
Powered by GitBook
On this page
  • Use TypeScript or JavaScript for this function.
  • Need for changes to ensure proper functionality.
  1. License Software's
  2. PrimeLicense
  3. API Integration
  4. Front-end

Javascript/Typescript

Use TypeScript or JavaScript for this function.

Methods through front-end are completely insecure. It is recommended to use back-end for high development and security standards.

async function checkLicense() {
    try {
        const response = await fetch("https://license.example.com/api.php?secret={$secret}&type=license&key={$key}&scope={$scope}");
        const data = await response.json();

        if (data.valid) {
            // License is valid
            console.log('Success');
        } else {
            // License is invalid
            console.log('Error... Access denied!');
            if (data.message) {
                console.log('Type: ' + data.message);
            }
        }
    } catch (error) {
        console.error('Error fetching license:', error);
    }
}

checkLicense();

Need for changes to ensure proper functionality.

Fill in the necessary fields.

{$secret} = The secret key of the site to which you will allow access, found in config.php

{$key} = A generated license key.

{$scope} = If the use of scope in the license is mandatory, enter the SCOPE set in the key.


Done.

PreviousFront-endNextBack-end

Last updated 12 months ago

Regards,

🔑
🔏
💉
📀
juan panizzino