Skip to content

Commit eb14040

Browse files
authored
Merge pull request #790 from transformerlab/add/work-os-login
Login with WorkOS in cloud mode
2 parents 6e979a3 + 7319a86 commit eb14040

File tree

10 files changed

+1095
-70
lines changed

10 files changed

+1095
-70
lines changed

src/renderer/App.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import {
2626
useExperimentInfo,
2727
} from './lib/ExperimentInfoContext';
2828
import * as chatAPI from './lib/transformerlab-api-sdk';
29+
import RootAuthCallbackHandler from './components/User/RootAuthCallbackHandler';
2930

3031
type AppContentProps = {
3132
connection: string;
@@ -197,6 +198,8 @@ export default function App() {
197198
<NotificationProvider>
198199
<CssVarsProvider disableTransitionOnChange theme={theme}>
199200
<CssBaseline />
201+
{/* Handle non-hash OAuth callback (/auth/callback) before rendering the app */}
202+
<RootAuthCallbackHandler />
200203
<ExperimentInfoProvider connection={connection}>
201204
<AppContent
202205
connection={connection}

0 commit comments

Comments
 (0)