mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
fix: sso (#2661)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import React, { useCallback, useEffect, useMemo, useRef } from 'react';
|
||||
import React, { useCallback, useEffect } from 'react';
|
||||
import { useRouter } from 'next/router';
|
||||
import type { ResLogin } from '@/global/support/api/userRes.d';
|
||||
import { useChatStore } from '@/web/core/chat/context/storeChat';
|
||||
@@ -35,9 +35,6 @@ const provider = () => {
|
||||
);
|
||||
|
||||
const handleSSO = useCallback(async () => {
|
||||
if (isOauthLogging) return;
|
||||
isOauthLogging = true;
|
||||
|
||||
try {
|
||||
const res = await ssoLogin(query);
|
||||
|
||||
|
Reference in New Issue
Block a user