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