We want to regenerate the QR code because if a failure occurs during keyserver auth, it will result in the device keys changing.
My first thought was that we could have an effect regenerate the QR code, but I'm not sure how to subscribe to changes in the device ID.
Instead, I decided to handle it imperatively. This works because we wait until the database is reset before returning from useLogIn.
Depends on D12115