Skip to content

Commit

Permalink
FR-15208 - Remove middleware from default export to prevent include b…
Browse files Browse the repository at this point in the history
…ackend code in frontend components (#318)
  • Loading branch information
frontegg-david authored Feb 23, 2024
1 parent 33a7720 commit 698f710
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/nextjs/src/common/useRequestAuthorizeSSR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export default function useRequestAuthorizeSSR({ app, user, tenants, session }:
accessToken: user.accessToken ?? session?.accessToken,
}
: null;

// TODO: consider using useMemo instead of useEffect
useEffect(() => {
app?.store.dispatch({
type: 'auth/requestAuthorizeSSR',
Expand Down
1 change: 0 additions & 1 deletion packages/nextjs/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export * from './common';
export * from './config';
export * from './middleware';
export * from './types';

export { AdminPortal, AppHolder, HostedLogin } from '@frontegg/js';
Expand Down

0 comments on commit 698f710

Please sign in to comment.