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.

Parameters

int $secretLength

Return Value

string

at line 17
string qrCodeUrl(string $companyName, string $companyEmail, string $secret)

Get the two factor authentication QR code URL.

Parameters

string $companyName
string $companyEmail
string $secret

Return Value

string

at line 22
bool verify(string $secret, string $code)

Verify the given token.

Parameters

string $secret
string $code

Return Value

bool