Skip to content

Kirby 4.2.0

new Totp()

Class constructor

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

Parameters

Name Type Default Description
$secret string|null 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