feat: oauth refresh token (#22744)

Co-authored-by: Yeuoly <admin@srmxy.cn>
This commit is contained in:
Maries 2025-07-23 13:12:39 +08:00 committed by GitHub
commit ad67094e54
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 125 additions and 4 deletions

View file

@ -93,6 +93,7 @@ class BuiltinToolProvider(Base):
credential_type: Mapped[str] = mapped_column(
db.String(32), nullable=False, server_default=db.text("'api-key'::character varying")
)
expires_at: Mapped[int] = mapped_column(db.BigInteger, nullable=False, server_default=db.text("-1"))
@property
def credentials(self) -> dict: