Skip to content

QR Login⚓︎

Instead of relying on the HTML blocks, you can also directly render a QR code that, when scanned with the nextAuth-enabled app, allows logging in to the given session. By calling getQrLogin, a QR code is obtained for the given session identifier.

The call will return:

  • A PNG (as raw byte array) when ?img=png is set as query parameter. The PNG contains a render of the QR code in the size set with the s query parameter.
  • A raw byte array containing the data that should be rendered as QR code, when no img query parameter is present. The QR code rendering should be done as a raw byte array, without any additional encoding applied.

The getQrLogin API call can optionally also take a UserContext JSON object, to include additional session information.