fix: handle sso state (#3402)
Some checks are pending
Build FastGPT images in Personal warehouse / build-fastgpt-images (push) Waiting to run

This commit is contained in:
a.e. 2024-12-16 12:17:13 +08:00 committed by GitHub
parent b4933471cd
commit 76d20b2b76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,7 +79,12 @@ const provider = () => {
return;
}
if (!code || !loginStore?.state || !state) return;
if (
!code ||
!loginStore ||
(loginStore.provider !== OAuthEnum.sso && (!loginStore.state || !state))
)
return;
if (isOauthLogging) return;