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 whengenerating codes for third-party services |