File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ import { redirect } from 'next/navigation';
33import { authOptions } from 'app/api/auth/[...nextauth]/config' ;
44import { memoizePromise } from '@/utils/async' ;
55
6- const internalGetAuthSession = async ( ) : Promise < Session | null > => {
7- const memoizedFrontend = memoizePromise (
8- ( ) => import ( 'next-auth/react' ) . then ( ( m ) => m . getSession ( ) ) ,
9- 50 ,
10- ) ;
6+ const memoizedFrontend = memoizePromise (
7+ ( ) => import ( 'next-auth/react' ) . then ( ( m ) => m . getSession ( ) ) ,
8+ 500 ,
9+ ) ;
1110
11+ const internalGetAuthSession = async ( ) : Promise < Session | null > => {
1212 const internalSession = await ( typeof window === 'undefined'
1313 ? import ( 'next-auth' ) . then ( ( m ) => m . getServerSession ( authOptions ) )
1414 : memoizedFrontend ( ) ) ;
You can’t perform that action at this time.
0 commit comments