2022-11-14 17:13:24 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Laragear\WebAuthn\Contracts\WebAuthnAuthenticatable as Authenticatable;
|
|
|
|
|
|
|
|
interface WebAuthnAuthenticatable extends Authenticatable
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Saves a new alias for a given WebAuthn credential.
|
|
|
|
*/
|
2022-11-22 15:15:52 +01:00
|
|
|
public function renameCredential(string $id, string $alias) : bool;
|
2022-11-14 17:13:24 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Removes one or more credentials previously registered.
|
|
|
|
*
|
|
|
|
* @param string|array $id
|
|
|
|
*/
|
2022-11-22 15:15:52 +01:00
|
|
|
public function flushCredential($id) : void;
|
2022-11-14 17:13:24 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Sends a webauthn recovery email to the user.
|
|
|
|
*/
|
2022-11-22 15:15:52 +01:00
|
|
|
public function sendWebauthnRecoveryNotification(string $token) : void;
|
2022-11-14 17:13:24 +01:00
|
|
|
}
|