TwoFactorAuthenticationProvider
interface TwoFactorAuthenticationProvider
Methods
string
generateSecretKey(int $secretLength = 32)
Generate a new secret key.
string
qrCodeUrl(string $companyName, string $companyEmail, string $secret)
Get the two factor authentication QR code URL.
bool
verify(string $secret, string $code)
Verify the given token.
Details
at line 12
string
generateSecretKey(int $secretLength = 32)
Generate a new secret key.
at line 17
string
qrCodeUrl(string $companyName, string $companyEmail, string $secret)
Get the two factor authentication QR code URL.
at line 22
bool
verify(string $secret, string $code)
Verify the given token.