---
title: "MLBB Auth"
url: "https://ridwaanhall.com/projects/mlbb-auth"
markdown: "https://ridwaanhall.com/projects/mlbb-auth.md"
summary: "A Python CLI and service layer for the Mobile Legends verification-code login."
---

# MLBB Auth

> A Python CLI and service layer for the Mobile Legends verification-code login.

- Category: API
- Status: Completed
- Started: January 1, 2026
- Built with: Python, Django, Django REST Framework

## About

### The problem

The Mobile Legends login is a two-step verification-code flow, and every tool that needs a player's data has to reimplement it.

### The approach

MLBB Auth wraps the flow in a small package with a command-line interface. get_vc requests a code and saves the role and zone, login exchanges the code for a token, user fetches player data, and logout clears the cache. A Django project wraps the same layer as a service.

- The API base URL comes from the environment, not a command-line flag.
- Credentials and the cached login stay in the working directory.

### The result

The login flow behind Arena Card and Arena Academy, packaged for reuse. The source is private.

## Features

- **Four Commands**: Request a code, log in, fetch user data and log out.
- **Local Cache**: Role, zone and the login payload kept locally.
- **Service Layer**: The same code reused behind a Django service.

## Tags

MLBB, Auth, Cli

## Elsewhere

- This page for people: https://ridwaanhall.com/projects/mlbb-auth
- Index of every page as Markdown: [llms.txt](https://ridwaanhall.com/llms.txt)
