update version doc (#5106)

* update version doc

* fix: provider

* version doc

* perf: provider
This commit is contained in:
Archer
2025-06-28 10:06:17 +08:00
committed by GitHub
parent aafc0cef45
commit 8e18562c91
8 changed files with 40 additions and 28 deletions

View File

@@ -127,6 +127,7 @@ const FormLayout = ({ children, setPageType, pageType }: Props) => {
router.replace(redirectUrl, '_self');
return;
}
if (item.redirectUrl) {
setLoginStore({
provider: item.provider as OAuthEnum,

View File

@@ -5,8 +5,10 @@ import { authCert } from '@fastgpt/service/support/permission/auth/common';
import { delUserAllSession } from '@fastgpt/service/support/user/session';
async function handler(req: NextApiRequest, res: NextApiResponse<any>) {
const { userId } = await authCert({ req, authToken: true });
await delUserAllSession(userId);
try {
const { userId } = await authCert({ req, authToken: true });
await delUserAllSession(userId);
} catch (error) {}
clearCookie(res);
}

View File

@@ -33,7 +33,7 @@ const provider = () => {
(res: ResLogin) => {
setUserInfo(res.user);
router.push(
router.replace(
loginStore?.lastRoute ? decodeURIComponent(loginStore?.lastRoute) : '/dashboard/apps'
);
},