The OTP generation process assumes default options at all times which causes it to generate invalid codes for non-default settings. For reference Google has documented the options here https://github.com/google/google-authenticator/wiki/Key-Uri-Format