feat: add expires_at field to OAuth credentials and default value for builtin tool provider

This commit is contained in:
Harry
2025-07-22 00:53:03 +08:00
parent 5d5fa88857
commit 5d986c2cdf
5 changed files with 45 additions and 0 deletions

View File

@ -759,6 +759,7 @@ class ToolOAuthCallback(Resource):
provider=provider,
credentials=dict(credentials),
api_type=CredentialType.OAUTH2,
expires_at=credentials.get("expires_at"),
)
return redirect(f"{dify_config.CONSOLE_WEB_URL}/oauth-callback")