Skip to main content

Garena Free Fire JWT Token Generator Module

Project description

🚀 FlexbaseGFFT

FlexbaseGFFT (Flexbase Garena Free Fire Token) is a fast and lightweight Python library for generating dynamic JWT tokens used in Garena Free Fire player sessions. It also includes a built-in updater that automatically retrieves the latest live game update information.

The library provides a simple synchronous API, making it easy to integrate into any Python project without using async/await.


✨ Features

  • 🚀 Fast & Lightweight

    • Optimized for speed and efficient performance.
  • 🧠 Smart Caching

    • During bulk processing, live game update information is fetched only once and cached in memory, reducing unnecessary network requests.
  • 🛠️ Simple API

    • No async/await required.
    • Easy-to-use synchronous methods.
  • 🔐 Multiple Authentication Methods

    • UID + Password
    • Access Token
    • Access Token + Open ID
  • 📦 Automatic Dependency Installation

    • Required dependencies are installed automatically through pip.
  • 🔄 Live Game Updater

    • Retrieves the latest game version information automatically.

📋 Requirements

  • Python 3.10+
  • pip

📥 Installation

Clone the repository and install the package:

git clone https://github.com/Flexbasei/FlexbaseGFFT.git
cd FlexbaseGFFT
pip install .

Or install directly :

pip install FlexbaseGFFT

🛠️ Usage

# -*- coding: utf-8 -*-

from FlexbaseGFFT import FFJTG, FFUpdater


def main():

    # Fetch live game update information
    print("[*] Fetching live game update information...")

    updater = FFUpdater()
    game_data = updater.info

    print("\n--- Game Update Information ---")
    print(f"VersionCode    : {game_data.get('VersionCode')}")
    print(f"ReleaseVersion : {game_data.get('ReleaseVersion')}")
    print(f"FromVersion    : {game_data.get('FromVersion')}")
    print(f"ToVersion      : {game_data.get('ToVersion')}")
    print(f"NextUpdateDate : {game_data.get('NextUpdateDate')}")
    print(f"Countdown      : {game_data.get('Countdown')}")
    print("-" * 35)

    bot = FFJTG()

    # ==========================================================
    # Method 1 : UID + Password
    # ==========================================================

    accounts = [
        {
            "uid": "4128642034",
            "pass": "71B464329BEB76CE5E4F6559F06513E2E0F170446D77E509CB847F315D7369C6"
        }
    ]

    for account in accounts:
        result = bot.uid_password(
            account["uid"],
            account["pass"]
        )

        print(result)

    # ==========================================================
    # Method 2 : Access Token
    # ==========================================================

    # result = bot.access_token(
    #     access_token="YOUR_ACCESS_TOKEN"
    # )
    #
    # print(result)

    # ==========================================================
    # Method 3 : Access Token + Open ID
    # ==========================================================

    # result = bot.access_token(
    #     access_token="YOUR_ACCESS_TOKEN",
    #     open_id="YOUR_OPEN_ID"
    # )
    #
    # print(result)


if __name__ == "__main__":
    main()

🔑 Authentication Methods

1️⃣ UID + Password

from FlexbaseGFFT import FFJTG

bot = FFJTG()

result = bot.uid_password(
    uid="YOUR_UID",
    password="YOUR_PASSWORD"
)

print(result)

2️⃣ Access Token

Open ID will be extracted automatically.

from FlexbaseGFFT import FFJTG

bot = FFJTG()

result = bot.access_token(
    access_token="YOUR_ACCESS_TOKEN"
)

print(result)

3️⃣ Access Token + Open ID

Fastest authentication method.

from FlexbaseGFFT import FFJTG

bot = FFJTG()

result = bot.access_token(
    access_token="YOUR_ACCESS_TOKEN",
    open_id="YOUR_OPEN_ID"
)

print(result)

📊 Live Game Update

from FlexbaseGFFT import FFUpdater

updater = FFUpdater()

print(updater.info)

Example Output:

{
    "VersionCode": "2019119999",
    "ReleaseVersion": "OB50",
    "FromVersion": "OB49",
    "ToVersion": "OB50",
    "NextUpdateDate": "2026-08-20",
    "Countdown": "13 Days"
}

⚡ Performance

During bulk processing:

  • First request fetches live update information.
  • Remaining requests use cached data.
  • No repeated scraping.
  • Faster execution.
  • Lower network usage.

📂 Project Structure

FlexbaseGFFT/
│
├── FlexbaseGFFT/
│   ├── __init__.py
│   ├── FFJTG.py
│   ├── FFUpdater.py
│   └── utils.py
│
├── setup.py
├── pyproject.toml
├── requirements.txt
├── LICENSE
└── README.md

🤝 Community & Support

Stay updated with our latest projects, report bugs, or get support through our official Telegram channels.

  • 💝 Flexbase: @Flexbasei
  • 🌺 LORD MORPHEUS: @spideerio_yt
  • 💻 GitHub: @Flexbasei

⭐ Support

If you find this project useful, don't forget to give it a ⭐ Star on GitHub!

Made with ❤️ by Flexbase

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flexbasegfft-1.0.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flexbasegfft-1.0.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file flexbasegfft-1.0.2.tar.gz.

File metadata

  • Download URL: flexbasegfft-1.0.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for flexbasegfft-1.0.2.tar.gz
Algorithm Hash digest
SHA256 7fa83e93d4e943d362b21466925552845dfeaa88994986566bb5a34c6724e05b
MD5 16a15f1c6fcb960b73f53b04643ab058
BLAKE2b-256 f830ae1c92e66f45979e36392122fc6772b47c8fec631bf67133d07935808dcb

See more details on using hashes here.

File details

Details for the file flexbasegfft-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: flexbasegfft-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for flexbasegfft-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d84d2f8bc93b21e1b9c79877b39653df05120717febdeb4594be4c6bf8313418
MD5 95ec9050a0a62bab8574d378a2ebe6d4
BLAKE2b-256 84471ed841fd123b34d0f6b84d4f4cf254f15b0bf146dec172fd11549c648354

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page