Skip to content

Commit 507099c

Browse files
committed
fix: sso
1 parent 7473be5 commit 507099c

File tree

1 file changed

+1
-4
lines changed
  • projects/app/src/pages/login

1 file changed

+1
-4
lines changed

projects/app/src/pages/login/sso.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useCallback, useEffect, useMemo, useRef } from 'react';
1+
import React, { useCallback, useEffect } from 'react';
22
import { useRouter } from 'next/router';
33
import type { ResLogin } from '@/global/support/api/userRes.d';
44
import { useChatStore } from '@/web/core/chat/context/storeChat';
@@ -35,9 +35,6 @@ const provider = () => {
3535
);
3636

3737
const handleSSO = useCallback(async () => {
38-
if (isOauthLogging) return;
39-
isOauthLogging = true;
40-
4138
try {
4239
const res = await ssoLogin(query);
4340

0 commit comments

Comments
 (0)