We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a917a2d commit ea4784eCopy full SHA for ea4784e
.changeset/gentle-numbers-sit.md
@@ -0,0 +1,5 @@
1
+---
2
+"@clerk/nextjs": patch
3
4
+
5
+Await usage of cookies() and ensure the return value of the server action is valid.
packages/nextjs/src/app-router/server-actions.ts
@@ -7,5 +7,5 @@ import { cookies } from 'next/headers';
7
// and the async is no longer required in newer next versions.
8
// ref: https://github.com/vercel/next.js/pull/62821
9
export async function invalidateCacheAction() {
10
- return cookies().delete(`__clerk_invalidate_cache_cookie_${Date.now()}`);
+ void (await cookies()).delete(`__clerk_invalidate_cache_cookie_${Date.now()}`);
11
}
0 commit comments