Skip to content

Kirby 6.0.1

new Totp()

new Totp(string|null $secret = null, bool $force = false)

Parameters

Name Type Default Description
$secret stringornull null Existing secret in Base32 format or null to generate a new one
$force bool false Whether to skip the secret length validation; WARNING: Only ever set this to true when generating codes for third-party services

Parent class

Kirby\Toolkit\Totp