Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Idle Timeout for Sync with mobile #8201

Merged
merged 4 commits into from
Mar 24, 2020
Merged

Add Idle Timeout for Sync with mobile #8201

merged 4 commits into from
Mar 24, 2020

Conversation

rickycodes
Copy link
Contributor

When the user opens up the "Sync with mobile" section and enters their password they're presented with a QR code that can be scanned. At this point the end user is vulnerable to anybody else that can see the aforementioned QR code...

My thinking with adding this is that it's just an additional safety mechanism. If a user opens this area and somehow forgets (gets distracted, walks away from their computer leaving it unlocked) this mechanism will ensure the amount of time the QR code is displayed on the screen is limited.

@rickycodes rickycodes changed the title Add sync idle timeout Add Idle Timeout for Sync with mobile Mar 17, 2020
Gudahtt
Gudahtt previously approved these changes Mar 24, 2020
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@@ -47,27 +48,45 @@ export default class MobileSyncPage extends Component {
}
}

handleIdleTimeout () {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe startIdleTimeout would be a better name? "handle" makes me thing this is an event handler or something.

@rickycodes rickycodes requested a review from Gudahtt March 24, 2020 04:17
@rickycodes rickycodes merged commit b7b827b into MetaMask:develop Mar 24, 2020
@rickycodes rickycodes deleted the add-sync-idle-timeout branch March 24, 2020 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants