Buckets:

download
raw
1.02 kB
from datetime import datetime, timezone
from uuid import UUID
from beanie import Document
from pydantic import Field
from pymongo import IndexModel
from fastapi_fullauth.models.beanie._common import uuid7
class PasskeyDocument(Document):
"""Passkey/WebAuthn credential collection. Use directly or subclass.
class Passkey(PasskeyDocument):
pass
"""
id: UUID = Field(default_factory=uuid7) # type: ignore[assignment]
user_id: UUID
credential_id: str
public_key: str
sign_count: int = 0
device_name: str = ""
# stored as a native array, unlike the SQL adapters which join on a string
transports: list[str] = Field(default_factory=list)
backed_up: bool = False
created_at: datetime = Field(default_factory=lambda: datetime.now(timezone.utc))
last_used_at: datetime | None = None
class Settings:
name = "fullauth_passkeys"
indexes = [
IndexModel("credential_id", unique=True),
IndexModel("user_id"),
]

Xet Storage Details

Size:
1.02 kB
·
Xet hash:
f8c1f9041e51c2750025c0a28d143ec4ed60a4c89b49bf91b111f8184c49fa57

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.