mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-11 17:50:39 +01:00
26 lines
628 B
PHP
26 lines
628 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Laragear\WebAuthn\Contracts\WebAuthnAuthenticatable as Authenticatable;
|
|
|
|
interface WebAuthnAuthenticatable extends Authenticatable
|
|
{
|
|
/**
|
|
* Saves a new alias for a given WebAuthn credential.
|
|
*/
|
|
public function renameCredential(string $id, string $alias) : bool;
|
|
|
|
/**
|
|
* Removes one or more credentials previously registered.
|
|
*
|
|
* @param string|array $id
|
|
*/
|
|
public function flushCredential($id) : void;
|
|
|
|
/**
|
|
* Sends a webauthn recovery email to the user.
|
|
*/
|
|
public function sendWebauthnRecoveryNotification(string $token) : void;
|
|
}
|