Primary authentication method using QR codes for secure login across devices
Generate QR Code Session
Display QR Code
User Scans QR Code
User Confirms Login
Receive Authentication
POST /{locale}/shop/auth/qr-login/generate
Parameters:
GET /{locale}/shop/auth/qr-login/poll/{sessionId}
Parameters:
pending
, scanned
, or confirmed
POST /{locale}/shop/auth/qr-login/scan/{qrCode}
Parameters:
POST /{locale}/shop/auth/qr-login/confirm/{sessionId}
Parameters:
qr-login:{sessionId}
Session Expiration
User Authorization
Secure Token Generation
Real-time Security
Error Code | Description | Resolution |
---|---|---|
VALIDATION_ERROR | Invalid request parameters | Check device_name length |
QR_SESSION_NOT_FOUND | Session expired or doesn’t exist | Generate new QR session |
AUTH_REQUIRED | Mobile user not authenticated | Login to mobile app first |
QR_CODE_NOT_FOUND | QR code expired or invalid | Generate new QR code |
QR_SESSION_UNAUTHORIZED | User not authorized for session | Use same account that scanned QR |
QR_GENERATION_ERROR | Failed to create QR session | Try again or contact support |
QR_SCAN_ERROR | Failed to scan QR code | Check network and try again |
QR_CONFIRM_ERROR | Failed to confirm login | Check authentication and retry |