feat: add MyWhoosh token persistence

This commit is contained in:
Bastian Wagner
2026-08-15 14:38:50 +02:00
parent ef9ca9eeca
commit a28d06ffdd
5 changed files with 77 additions and 0 deletions

17
app/mywhoosh/models.py Normal file
View File

@@ -0,0 +1,17 @@
from dataclasses import dataclass
from datetime import datetime
@dataclass(frozen=True)
class MyWhooshToken:
access_token: str
refresh_token: str | None
whoosh_id: str | None
@dataclass(frozen=True)
class MyWhooshActivity:
id: str
title: str
activity_file_id: str
started_at: datetime | None