First release

This commit is contained in:
Italo
2022-06-14 05:17:04 -04:00
commit b60b829b96
119 changed files with 9412 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace Laragear\WebAuthn\Events;
use Illuminate\Foundation\Events\Dispatchable;
use Laragear\WebAuthn\Models\WebAuthnCredential;
class CredentialCloned
{
use Dispatchable;
/**
* Create a new event instance.
*
* @param \Laragear\WebAuthn\Models\WebAuthnCredential $credential
* @param int $reportedCount The counter reported by the user authenticator.
*/
public function __construct(public WebAuthnCredential $credential, public int $reportedCount)
{
//
}
}

View File

@@ -0,0 +1,23 @@
<?php
namespace Laragear\WebAuthn\Events;
use Illuminate\Foundation\Events\Dispatchable;
use Laragear\WebAuthn\Contracts\WebAuthnAuthenticatable;
use Laragear\WebAuthn\Models\WebAuthnCredential;
class CredentialCreated
{
use Dispatchable;
/**
* Create a new event instance.
*
* @param \Laragear\WebAuthn\Contracts\WebAuthnAuthenticatable $user
* @param \Laragear\WebAuthn\Models\WebAuthnCredential $credential
*/
public function __construct(public WebAuthnAuthenticatable $user, public WebAuthnCredential $credential)
{
//
}
}

View File

@@ -0,0 +1,21 @@
<?php
namespace Laragear\WebAuthn\Events;
use Illuminate\Foundation\Events\Dispatchable;
use Laragear\WebAuthn\Models\WebAuthnCredential;
class CredentialDisabled
{
use Dispatchable;
/**
* Create a new event instance.
*
* @param \Laragear\WebAuthn\Models\WebAuthnCredential $credential
*/
public function __construct(public WebAuthnCredential $credential)
{
//
}
}

View File

@@ -0,0 +1,21 @@
<?php
namespace Laragear\WebAuthn\Events;
use Illuminate\Foundation\Events\Dispatchable;
use Laragear\WebAuthn\Models\WebAuthnCredential;
class CredentialEnabled
{
use Dispatchable;
/**
* Create a new event instance.
*
* @param \Laragear\WebAuthn\Models\WebAuthnCredential $credential
*/
public function __construct(public WebAuthnCredential $credential)
{
//
}
}