zmp_wait_for_login
Waits for the user to confirm mobile Zalo QR scan authorization, then saves the returned ZMP_TOKEN into the project .env file.
Instructions
Poll and wait for user to confirm mobile Zalo QR scan authorization, then automatically save ZMP_TOKEN into .env.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zmpsk | Yes | Session key (zmpsk) returned by zmp_request_login_qr. | |
| projectDir | Yes | Project directory where .env should be updated with the token. | |
| timeoutSec | No | Polling timeout in seconds (default: 60). |