$totp->generate()
Generates the current TOTP code
$totp->generate(int $offset = 0): string
Parameters
Name | Type | Default | Description |
---|---|---|---|
$offset | int |
0 |
Optional counter offset to generate previous or upcoming codes |
Return type
string