econds), <code>digits</code> (number of code/token characters, defaults to <code>6</code>) and <code>hash</code> (hash algorithm for internal HMAC, defaults to <code>&quot;SHA-1&quot;</code>, other options are <code>&quot;SHA-256&quot;</code> and <code>&quot;SHA-512&quot;</code>). The required <code>secret</code> parameter must be a valid Base-32 string, under the same format of <code>TOTP.secret()</code> operation. Returns a boolean flag for authentication/proof (<code>true</code> for valid token, <code>fa