fix jwt in web (#545)
This commit is contained in:
parent
d49ac1e4ac
commit
9af0da4450
2 changed files with 4 additions and 2 deletions
|
|
@ -310,7 +310,8 @@ const Main: FC<IMainProps> = ({
|
||||||
}
|
}
|
||||||
|
|
||||||
const fetchInitData = async () => {
|
const fetchInitData = async () => {
|
||||||
await checkOrSetAccessToken()
|
if (!isInstalledApp)
|
||||||
|
await checkOrSetAccessToken()
|
||||||
|
|
||||||
return Promise.all([isInstalledApp
|
return Promise.all([isInstalledApp
|
||||||
? {
|
? {
|
||||||
|
|
|
||||||
|
|
@ -255,7 +255,8 @@ const TextGeneration: FC<IMainProps> = ({
|
||||||
}
|
}
|
||||||
|
|
||||||
const fetchInitData = async () => {
|
const fetchInitData = async () => {
|
||||||
await checkOrSetAccessToken()
|
if (!isInstalledApp)
|
||||||
|
await checkOrSetAccessToken()
|
||||||
|
|
||||||
return Promise.all([isInstalledApp
|
return Promise.all([isInstalledApp
|
||||||
? {
|
? {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue