Skip to content

Kirby 6.0.1

$totp->generate()

Generates the current TOTP code

$totp->generate(int $offset = 0): numeric-string

Parameters

Name Type Default Description
$offset int 0 Optional counter offset to generate previous or upcoming codes

Return type

numeric-string

Parent class

Kirby\Toolkit\Totp