This commit is contained in:
Finley Ge
2024-09-10 18:24:29 +08:00
committed by GitHub
parent aeba79267a
commit 34422f9549

View File

@@ -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);