[Sub] Authentication QR response

This endpoint will provide the QR code which will be used to initiate an authenticated session by scanning the QR code with a mobile device. The QR code that is generated from the cloud is device-specific.

Request Topic and Payload

Topic

things5-production/v1/devices/<device-id>/authentication_qr_res

Payload Representation

{
  "qr_code": "data:image/png;base64,{base64_qr_code}",
  "expiration_time": "{expiration_timestamp}"
}

Payload Parameters

typedescriptionexample
qr_codeQR code generated by the cloud in base64 format
expiration_timeExpiration time of the QR code.1500000000030
  • Ensure that the is valid and corresponds to a registered device.
  • The QR code will be valid until the specified expiration_time. After that, a new QR code will need to be requested.

Example response

{
  "qr_code": "data:image/png;base64,iVBORw0KGgoAAAANS...",
  "expiration_time": "1500000000030",
}