-
-
Notifications
You must be signed in to change notification settings - Fork 617
Expand file tree
/
Copy pathPasskey.php
More file actions
31 lines (18 loc) · 638 Bytes
/
Passkey.php
File metadata and controls
31 lines (18 loc) · 638 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
namespace Statamic\Contracts\Auth;
use Carbon\Carbon;
use Webauthn\CredentialRecord;
interface Passkey
{
public function id(): string;
public function name(): string;
public function setName(string $name): self;
public function user(): ?User;
public function setUser(string|User $user): self;
public function credential(): CredentialRecord;
public function setCredential(array|CredentialRecord $credential): self;
public function lastLogin(): ?Carbon;
public function setLastLogin(null|int|Carbon $time): self;
public function save(): bool;
public function delete(): bool;
}