Skip to content

Kirby 4.2.0

$totp->verify()

Securely checks the provided TOTP code against the current, the direct previous and following codes

$totp->verify(string $totp): bool

Parameters

Name Type Default
$totp * string

Return type

bool

Parent class

Kirby\Toolkit\Totp