diff --git a/packages/sdks/nextjs-sdk/examples/app-router/app/my-applications-portal/page.tsx b/packages/sdks/nextjs-sdk/examples/app-router/app/my-applications-portal/page.tsx index 72ed1b366..2c2bb22ca 100644 --- a/packages/sdks/nextjs-sdk/examples/app-router/app/my-applications-portal/page.tsx +++ b/packages/sdks/nextjs-sdk/examples/app-router/app/my-applications-portal/page.tsx @@ -12,12 +12,9 @@ export default () => ( justifyContent: 'center' }} > -

User Profile

+

Applications Portal

{ - window.location.href = '/login'; - }} /> ); diff --git a/packages/sdks/react-sdk/src/components/ApplicationsPortal.tsx b/packages/sdks/react-sdk/src/components/ApplicationsPortal.tsx index 4a2f58af1..bb404438f 100644 --- a/packages/sdks/react-sdk/src/components/ApplicationsPortal.tsx +++ b/packages/sdks/react-sdk/src/components/ApplicationsPortal.tsx @@ -50,15 +50,6 @@ const ApplicationsPortal = React.forwardRef< innerRef.logger = logger; } }, [innerRef, logger]); - - useEffect(() => { - if (innerRef && onLogout) { - innerRef.addEventListener('logout', onLogout); - return () => innerRef.removeEventListener('logout', onLogout); - } - return undefined; - }, [innerRef, onLogout]); - return ( diff --git a/packages/sdks/web-component/src/lib/descope-wc/index.ts b/packages/sdks/web-component/src/lib/descope-wc/index.ts index d69931302..10dc8b972 100644 --- a/packages/sdks/web-component/src/lib/descope-wc/index.ts +++ b/packages/sdks/web-component/src/lib/descope-wc/index.ts @@ -8,4 +8,6 @@ if (!customElements.get('descope-wc')) { } export default DescopeWc; -export type { AutoFocusOptions, ThemeOptions, ILogger } from '../types'; +export type ILogger = Partial + +export type { AutoFocusOptions, ThemeOptions } from '../types'; diff --git a/packages/sdks/web-component/src/lib/types.ts b/packages/sdks/web-component/src/lib/types.ts index dd4b3d9b9..23baa4a8b 100644 --- a/packages/sdks/web-component/src/lib/types.ts +++ b/packages/sdks/web-component/src/lib/types.ts @@ -157,13 +157,6 @@ export interface Context { abTestingKey?: number; } -export interface ILogger { - info(title: string, description: string, state: any): void; - warn(title: string, description?: string): void; - debug(title: string, description?: string): void; - error(title: string, description?: string, ...optionalParams: any[]): void; -} - export type DescopeUI = Record Promise> & { componentsThemeManager: Record; };