Actions2
Check Login
AI-generatedSummary
Poll MISA AMIS API to verify QR code login completion for a given user identity.
Inputs
- userIdentity (required) — Unique identifier for sessions. Used to locate the pending QR login session file.
Output shape
json
On success: returns {message: 'Login Successful', userIdentity: , sessionFile:
}. On timeout: throws NodeOperationError with last polling status. If no pending session exists: throws error listing available pending files.
Examples
Example 1: User scans QR code within timeout
userIdentity: 'hiennv' triggers polling until API responds with 'Success' or 'v1/auth/token'. Result includes session cookie file path and 'Login Successful' message.