zmp_start_oauth_callback
Starts a local HTTP OAuth callback server to capture the redirect code or token during Zalo Mini App authentication and save it to your project directory.
Instructions
Start a local HTTP OAuth callback server (e.g. http://localhost:8085/oauth/callback) to capture redirect code/token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Local port to listen on (default: 8085). | |
| zaloAppId | No | Optional Zalo App ID to construct authorization URL. | |
| projectDir | No | Optional project directory to save received token/code. | |
| timeoutSec | No | Timeout waiting for redirect callback (default: 120s). |