fix: update react
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
import { unstable_cache } from 'next/cache';
|
||||
import { cookies } from 'next/headers';
|
||||
import { validateSessionToken } from './src/session';
|
||||
|
||||
export const auth = async () => {
|
||||
const token = (await cookies().get('session')?.value) ?? null;
|
||||
return cachedAuth(token);
|
||||
};
|
||||
|
||||
export const cachedAuth = unstable_cache(validateSessionToken);
|
||||
@@ -22,7 +22,6 @@
|
||||
"typescript": "catalog:"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"next": "14.2.1",
|
||||
"react": "catalog:"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user