anonaddy/app/Facades/Webauthn.php
2025-07-29 14:59:24 +01:00

32 lines
1.2 KiB
PHP

<?php
namespace App\Facades;
use Illuminate\Support\Facades\Facade;
use LaravelWebauthn\Services\Webauthn\PublicKeyCredentialCreationOptions;
use LaravelWebauthn\Services\Webauthn\PublicKeyCredentialRequestOptions;
/**
* @method static PublicKeyCredentialCreationOptions getRegisterData(\Illuminate\Contracts\Auth\Authenticatable $user)
* @method static \LaravelWebauthn\Models\WebauthnKey doRegister(\Illuminate\Contracts\Auth\Authenticatable $user, PublicKeyCredentialCreationOptions $publicKey, string $data, string $keyName)
* @method static PublicKeyCredentialRequestOptions getAuthenticateData(\Illuminate\Contracts\Auth\Authenticatable $user)
* @method static bool doAuthenticate(\Illuminate\Contracts\Auth\Authenticatable $user, PublicKeyCredentialRequestOptions $publicKey, string $data)
* @method static void forceAuthenticate()
* @method static bool check()
* @method static bool enabled(\Illuminate\Contracts\Auth\Authenticatable $user)
*
* @see \LaravelWebauthn\Webauthn
*/
class Webauthn extends Facade
{
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return \App\Services\Webauthn::class;
}
}