chore: change the oauth model

pull/22036/head
Novice 11 months ago
parent 2c1bf7c411
commit 17c3033710

@ -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", ""),
)

@ -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

Loading…
Cancel
Save