youtube 계정연결 기능 작업
This commit is contained in:
1 parent
cac825de19
commit
5c912e4bf8
11 files changed
+2918
-86
No files matched your search
+13
@@ -8,6 +8,8 @@ import LoadingSection from './pages/Analysis/LoadingSection';
|
||||
import AnalysisResultSection from './pages/Analysis/AnalysisResultSection';
|
||||
import LoginSection from './pages/Login/LoginSection';
|
||||
import GenerationFlow from './pages/Dashboard/GenerationFlow';
|
||||
import SocialConnectSuccess from './pages/Social/SocialConnectSuccess';
|
||||
import SocialConnectError from './pages/Social/SocialConnectError';
|
||||
import { crawlUrl, autocomplete, kakaoCallback, isLoggedIn, saveTokens, AutocompleteRequest } from './utils/api';
|
||||
import { CrawlingResponse } from './types/api';
|
||||
|
||||
@@ -328,6 +330,17 @@ const App: React.FC = () => {
|
||||
setViewMode('landing');
|
||||
};
|
||||
|
||||
// Social OAuth 콜백 페이지 처리
|
||||
const pathname = window.location.pathname;
|
||||
|
||||
if (pathname === '/social/connect/success') {
|
||||
return <SocialConnectSuccess />;
|
||||
}
|
||||
|
||||
if (pathname === '/social/connect/error') {
|
||||
return <SocialConnectError />;
|
||||
}
|
||||
|
||||
// 카카오 콜백 처리 중 로딩 화면 표시
|
||||
if (isProcessingCallback) {
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user