Skip to content

Commit

Permalink
fix: sso (#2661)
Browse files Browse the repository at this point in the history
  • Loading branch information
FinleyGe authored Sep 10, 2024
1 parent aeba792 commit 34422f9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions projects/app/src/pages/login/sso.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -35,9 +35,6 @@ const provider = () => {
);

const handleSSO = useCallback(async () => {
if (isOauthLogging) return;
isOauthLogging = true;

try {
const res = await ssoLogin(query);

Expand Down

0 comments on commit 34422f9

Please sign in to comment.