Skip to content

Commit 9d4c362

Browse files
committed
fix
1 parent 594f8d0 commit 9d4c362

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/spaces/mcp/auth/AuthContextMcp.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { createContext, useState, useEffect, ReactNode, use } from 'react';
22
import { MeResponseSchema } from './auth.schemas';
33
import { AUTH_FLOW_SESSION_KEY } from '../../../common/auth/AuthCallbackHandler.tsx';
44
import { getRedirectSuffix } from '../../../common/auth/getRedirectSuffix.ts';
5-
import { RoleBinding } from '../../../lib/api/types/crate/controlPlanes.ts';
65

76
interface AuthContextMcpType {
87
isLoading: boolean;
@@ -13,7 +12,7 @@ interface AuthContextMcpType {
1312

1413
const AuthContextMcp = createContext<AuthContextMcpType | null>(null);
1514

16-
export function AuthProviderMcp({ children }: { children: ReactNode; mcpUsers?: RoleBinding[] }) {
15+
export function AuthProviderMcp({ children }: { children: ReactNode }) {
1716
const [isAuthenticated, setIsAuthenticated] = useState(false);
1817
const [isLoading, setIsLoading] = useState(true);
1918
const [error, setError] = useState<Error | null>(null);

src/spaces/mcp/pages/McpPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export default function McpPage() {
9393
name: controlPlaneName,
9494
}}
9595
>
96-
<AuthProviderMcp mcpUsers={mcp?.spec?.authorization?.roleBindings}>
96+
<AuthProviderMcp>
9797
<WithinManagedControlPlane>
9898
<ObjectPage
9999
mode="IconTabBar"

0 commit comments

Comments
 (0)