If you trust this device, you can enable this and you won't need to use a verification code to log in as often.
The following actions will reset the trusted device and require a verification code to log in:
Changing your password (this will also log you out of all devices)
Signing out of all devices from your account settings
Note: Log ins from new devices will always require authentication.