We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b76eec8 commit ceb21b0Copy full SHA for ceb21b0
shell-ui/src/auth/AuthProvider.tsx
@@ -5,7 +5,6 @@ import {
5
UserManager,
6
useAuth as useOauth2Auth,
7
} from 'oidc-react';
8
-import { isAIUserAgent } from '../mcp/userAgent';
9
import React, { useCallback, useEffect } from 'react';
10
import { useErrorBoundary } from 'react-error-boundary';
11
import { useQuery } from 'react-query';
@@ -125,7 +124,6 @@ function OAuth2AuthProvider({ children }: { children: React.ReactNode }) {
125
124
};
126
}, [logOut]);
127
const oidcConfig: AuthProviderProps = {
128
- autoSignIn: !isAIUserAgent(),
129
onBeforeSignIn: () => {
130
localStorage.setItem('redirectUrl', window.location.href);
131
return window.location.href;
shell-ui/src/mcp/userAgent.ts
0 commit comments