mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-14 23:22:22 +00:00
update version doc (#5106)
* update version doc * fix: provider * version doc * perf: provider
This commit is contained in:
@@ -127,6 +127,7 @@ const FormLayout = ({ children, setPageType, pageType }: Props) => {
|
||||
router.replace(redirectUrl, '_self');
|
||||
return;
|
||||
}
|
||||
|
||||
if (item.redirectUrl) {
|
||||
setLoginStore({
|
||||
provider: item.provider as OAuthEnum,
|
||||
|
@@ -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);
|
||||
}
|
||||
|
||||
|
@@ -33,7 +33,7 @@ const provider = () => {
|
||||
(res: ResLogin) => {
|
||||
setUserInfo(res.user);
|
||||
|
||||
router.push(
|
||||
router.replace(
|
||||
loginStore?.lastRoute ? decodeURIComponent(loginStore?.lastRoute) : '/dashboard/apps'
|
||||
);
|
||||
},
|
||||
|
Reference in New Issue
Block a user