fix jwt in web (#545)
This commit is contained in:
@@ -310,6 +310,7 @@ const Main: FC<IMainProps> = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const fetchInitData = async () => {
|
const fetchInitData = async () => {
|
||||||
|
if (!isInstalledApp)
|
||||||
await checkOrSetAccessToken()
|
await checkOrSetAccessToken()
|
||||||
|
|
||||||
return Promise.all([isInstalledApp
|
return Promise.all([isInstalledApp
|
||||||
|
@@ -255,6 +255,7 @@ const TextGeneration: FC<IMainProps> = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const fetchInitData = async () => {
|
const fetchInitData = async () => {
|
||||||
|
if (!isInstalledApp)
|
||||||
await checkOrSetAccessToken()
|
await checkOrSetAccessToken()
|
||||||
|
|
||||||
return Promise.all([isInstalledApp
|
return Promise.all([isInstalledApp
|
||||||
|
Reference in New Issue
Block a user