Upgrade Clerk, Next.js, and React to latest versions + minor code changes

This commit is contained in:
Ahmad 2024-10-23 19:17:45 -04:00
parent a63270db0c
commit a89c9a9b02
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
31 changed files with 140 additions and 130 deletions

View file

@ -10,7 +10,7 @@ export async function GET(
) {
const params = await props.params;
try {
const { orgId, userId } = auth();
const { orgId, userId } = await auth();
if (!orgId || !userId)
return new NextResponse(JSON.stringify({ error: 'Unauthorized' }), {

View file

@ -9,7 +9,7 @@ export async function GET(
) {
const params = await props.params;
try {
const { orgId, userId } = auth();
const { orgId, userId } = await auth();
if (!orgId || !userId)
return new NextResponse(JSON.stringify({ error: 'Unauthorized' }), {