If you set up Two-Factor Authentication (2FA), you’ll have to pass the authentication every time you log in using a different device.
If you’re accessing your account from the same trusted device, your code should be saved from when you first enabled 2FA.