Skip to content

Commit

Permalink
[web] Log the QR code to the console
Browse files Browse the repository at this point in the history
Summary:
Using this URL as a deep link should allow logging in using a simulator as a primary device.

https://linear.app/comm/issue/ENG-10168/improve-qr-login-flow-on-dev

Test Plan: Check in the console if the link is displayed.

Reviewers: kamil, bartek

Reviewed By: kamil

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D14314
  • Loading branch information
palys-swm committed Feb 10, 2025
1 parent 883e1ca commit 9f63b70
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions web/account/log-in-form.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ function LoginForm() {
return qrCodeLinkURL(qrData.aesKey, qrData.deviceID, identityDeviceType);
}, [platform, qrData]);

React.useEffect(() => {
if (qrCodeURL) {
console.log(`QR Code URL: ${qrCodeURL}`);
}
}, [qrCodeURL]);

const { pushModal, clearModals, popModal } = useModalContext();

React.useEffect(() => {
Expand Down

0 comments on commit 9f63b70

Please sign in to comment.