How and where can I adjust the validity period of a generated passcode

How and where can I adjust the validity period of a generated passcode?

We must change from Starling2FA to Passcode verification. For this we must configure the validity period of the generated passcode that it fit for us. But how and where can I do this?