Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix jwt in web (#545)

zxhlyh9af0da44502e
diff --git a/web/app/components/share/chat/index.tsx b/web/app/components/share/chat/index.tsx
index 454102ba8bc..c7e7aacf774 100644
--- a/web/app/components/share/chat/index.tsx
+++ b/web/app/components/share/chat/index.tsx
@@ -310,7 +310,8 @@ const Main: FC<IMainProps> = ({
}
const fetchInitData = async () => {
- await checkOrSetAccessToken()
+ if (!isInstalledApp)
+ await checkOrSetAccessToken()
return Promise.all([isInstalledApp
? {
diff --git a/web/app/components/share/text-generation/index.tsx b/web/app/components/share/text-generation/index.tsx
index 01bbcea5e14..57b8b50e643 100644
--- a/web/app/components/share/text-generation/index.tsx
+++ b/web/app/components/share/text-generation/index.tsx
@@ -255,7 +255,8 @@ const TextGeneration: FC<IMainProps> = ({
}
const fetchInitData = async () => {
- await checkOrSetAccessToken()
+ if (!isInstalledApp)
+ await checkOrSetAccessToken()
return Promise.all([isInstalledApp
? {