Device linking.
On your computer, open Messages for Web in a browser, such as Chrome or Safari. Settings and enable the Remember this device after login option. On your phone, press Scan QR code and hold the device in front of the QR code displayed on the web page.