unsloth/studio/backend/models/users.py
Roland Tannous 47654cb91c Final cleanup
2026-03-12 18:28:04 +00:00

17 lines
647 B
Python

# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
"""Pydantic models for authentication tokens.
This module defines the Token response model used by auth routes.
"""
from pydantic import BaseModel, Field
class Token(BaseModel):
"""Authentication token model with access and refresh tokens."""
access_token: str = Field(..., description = "JWT access token (60 min expiry)")
refresh_token: str = Field(..., description = "Opaque refresh token (7 day expiry)")
token_type: str = Field(..., description = "Token type, always 'bearer'")