Skip to content

Kirby 5.0.4

new Totp()

Class constructor

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