fix: handle configure button for notion internal integration (#21412)

This commit is contained in:
baonudesifeizhai
2025-07-01 04:58:00 -04:00
committed by GitHub
parent 4198a533ad
commit 8516d15a4e
5 changed files with 20 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ class OAuthDataSource(Resource):
if not internal_secret:
return ({"error": "Internal secret is not set"},)
oauth_provider.save_internal_access_token(internal_secret)
return {"data": ""}
return {"data": "internal"}
else:
auth_url = oauth_provider.get_authorization_url()
return {"data": auth_url}, 200