radarscholar-api / app /auth /models.py
yzffm's picture
Upload 226 files
9c464c7 verified
Raw History Blame Contribute Delete
561 Bytes
"""Authentication data models.
Pydantic models representing verified user identity
extracted from Supabase JWT tokens.
"""
from pydantic import BaseModel, Field
class AuthUser(BaseModel):
"""Verified user identity from JWT token.
This is the authenticated context available to all
protected endpoints via the `get_current_user` dependency.
The `id` field maps to Supabase `auth.users.id` (UUID string).
"""
id: str = Field(..., description="Supabase auth user UUID")
email: str = Field(..., description="User email from JWT")