chore: change the oauth model

This commit is contained in:
Novice
2025-07-06 15:48:36 +08:00
parent 2c1bf7c411
commit 17c3033710
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ class OAuthClientProvider:
return OAuthTokens(
access_token=credentials.get("access_token", ""),
token_type=credentials.get("token_type", "Bearer"),
expires_in=int(credentials.get("expires_in", "3600")),
expires_in=int(credentials.get("expires_in", "3600") or 3600),
refresh_token=credentials.get("refresh_token", ""),
)

View File

@ -1192,7 +1192,7 @@ class OAuthClientInformation(BaseModel):
class OAuthClientInformationFull(OAuthClientInformation):
client_name: str
client_name: str | None = None
redirect_uris: list[str]
scope: Optional[str] = None
grant_types: Optional[list[str]] = None