Gmail is set to replace SMS-based authentication codes with QR code systems to verify user identity as part of Google’s effort to transition to a more secure model of two-factor authentication.