fix: update react

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-12-15 11:26:11 +01:00
parent c46cda12eb
commit 0f9ac4508a
4 changed files with 1193 additions and 1461 deletions

View File

@@ -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);

View File

@@ -22,7 +22,6 @@
"typescript": "catalog:"
},
"peerDependencies": {
"next": "14.2.1",
"react": "catalog:"
}
}
}