Skip to content

Commit deb35b6

Browse files
committed
fix: sso
1 parent 7473be5 commit deb35b6

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';
@@ -36,7 +36,6 @@ const provider = () => {
3636

3737
const handleSSO = useCallback(async () => {
3838
if (isOauthLogging) return;
39-
isOauthLogging = true;
4039

4140
try {
4241
const res = await ssoLogin(query);
@@ -67,8 +66,6 @@ const provider = () => {
6766
if (query && Object.keys(query).length > 0) {
6867
if (isOauthLogging) return;
6968

70-
isOauthLogging = true;
71-
7269
(async () => {
7370
await clearToken();
7471
handleSSO();

0 commit comments

Comments
 (0)