Skip to content

Commit

Permalink
Annotate timestamp fields per review
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Nov 4, 2024
1 parent 53ec262 commit b652982
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions neon_data_models/models/user/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,15 @@ class TokenConfig(BaseModel):
client_id: str
permissions: Dict[str, bool]
refresh_token: str
expiration: int
refresh_expiration: int
expiration: int = Field(
description="Unix timestamp of auth token expiration")
refresh_expiration: int = Field(
description="Unix timestamp of refresh token expiration")
token_name: str
creation_timestamp: int
last_refresh_timestamp: int
creation_timestamp: int = Field(
description="Unix timestamp of auth token creation")
last_refresh_timestamp: int = Field(
description="Unix timestamp of last auth token refresh")
access_token: Optional[str] = None


Expand Down

0 comments on commit b652982

Please sign in to comment.