Commit 34422f95 by Finley Ge Committed by GitHub

fix: sso (#2661)

parent aeba7926
import React, { useCallback, useEffect, useMemo, useRef } from 'react'; import React, { useCallback, useEffect } from 'react';
import { useRouter } from 'next/router'; import { useRouter } from 'next/router';
import type { ResLogin } from '@/global/support/api/userRes.d'; import type { ResLogin } from '@/global/support/api/userRes.d';
import { useChatStore } from '@/web/core/chat/context/storeChat'; import { useChatStore } from '@/web/core/chat/context/storeChat';
...@@ -35,9 +35,6 @@ const provider = () => { ...@@ -35,9 +35,6 @@ const provider = () => {
); );
const handleSSO = useCallback(async () => { const handleSSO = useCallback(async () => {
if (isOauthLogging) return;
isOauthLogging = true;
try { try {
const res = await ssoLogin(query); const res = await ssoLogin(query);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment