Skip to content

Commit ceb21b0

Browse files
feat(MK8S-196): remove autoSignIn AI detection and userAgent.ts
1 parent b76eec8 commit ceb21b0

File tree

2 files changed

+0
-50
lines changed

2 files changed

+0
-50
lines changed

shell-ui/src/auth/AuthProvider.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
UserManager,
66
useAuth as useOauth2Auth,
77
} from 'oidc-react';
8-
import { isAIUserAgent } from '../mcp/userAgent';
98
import React, { useCallback, useEffect } from 'react';
109
import { useErrorBoundary } from 'react-error-boundary';
1110
import { useQuery } from 'react-query';
@@ -125,7 +124,6 @@ function OAuth2AuthProvider({ children }: { children: React.ReactNode }) {
125124
};
126125
}, [logOut]);
127126
const oidcConfig: AuthProviderProps = {
128-
autoSignIn: !isAIUserAgent(),
129127
onBeforeSignIn: () => {
130128
localStorage.setItem('redirectUrl', window.location.href);
131129
return window.location.href;

shell-ui/src/mcp/userAgent.ts

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)