On your phone: WhatsApp → Settings → Linked devices → Link a device, then scan this.
The code refreshes automatically. This page updates on its own.