File "TwoFactorAuthenticationProvider.php"
Full Path: /var/www/drive/laravel/fortify/src/Contracts/TwoFactorAuthenticationProvider.php
File size: 663 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Laravel\Fortify\Contracts;
interface TwoFactorAuthenticationProvider
{
/**
* Generate a new secret key.
*
* @return string
*/
public function generateSecretKey();
/**
* Get the two factor authentication QR code URL.
*
* @param string $companyName
* @param string $companyEmail
* @param string $secret
* @return string
*/
public function qrCodeUrl($companyName, $companyEmail, $secret);
/**
* Verify the given token.
*
* @param string $secret
* @param string $code
* @return bool
*/
public function verify($secret, $code);
}