TotpInterface
interface TotpInterface (View source)
Time-based one-time passwords, as used by authenticator apps.
Methods
string
generateSecret(int $length = 16)
No description
bool
verify(string $secret, string $code, int $window = 1)
No description
string
provisioningUri(string $issuer, string $account, string $secret)
The otpauth:// URI an authenticator app scans.
Details
string
generateSecret(int $length = 16)
No description
bool
verify(string $secret, string $code, int $window = 1)
No description
string
provisioningUri(string $issuer, string $account, string $secret)
The otpauth:// URI an authenticator app scans.