Files
kontor/kontor-api/src/schema/admin/token.py
T
tpeetz 6077f685e0
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
Remove obsolete endpoints (#89)
Remove endpoints api/login/token and api/login/profile

---------

Co-authored-by: Thomas Peetz <thomas.peetz@cimt-ag.de>
Reviewed-on: #89
2026-05-19 17:52:30 +00:00

14 lines
226 B
Python

from typing import List, Optional
from pydantic import BaseModel
class Token(BaseModel):
access_token: str
token_type: str
class TokenData(BaseModel):
username: Optional[str] = None
scopes: List[str] = []