mirror of
https://github.com/langgenius/dify.git
synced 2026-05-02 16:38:04 +08:00
feat: add expires_at field to OAuth credentials and default value for builtin tool provider
This commit is contained in:
@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user