From 77ca70189c1ed25d7e11514d7f701cc7cca3d130 Mon Sep 17 00:00:00 2001 From: Harsh Shrikant Bhat <90265455+harshsbhat@users.noreply.github.com> Date: Wed, 13 Nov 2024 16:22:07 +0530 Subject: [PATCH] fix: withUnkey should not fail build (@unkey/nextjs) (#2651) * chore:withUnkey should not fail build (@unkey/nextjs) * chore: release --------- Co-authored-by: chronark --- .changeset/little-melons-collect.md | 5 +++++ packages/nextjs/src/index.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/little-melons-collect.md diff --git a/.changeset/little-melons-collect.md b/.changeset/little-melons-collect.md new file mode 100644 index 0000000000..eac1ca26c1 --- /dev/null +++ b/.changeset/little-melons-collect.md @@ -0,0 +1,5 @@ +--- +"@unkey/nextjs": minor +--- + +upgrade types to match nextjs 15 diff --git a/packages/nextjs/src/index.ts b/packages/nextjs/src/index.ts index 8d181c74aa..1978bee24b 100644 --- a/packages/nextjs/src/index.ts +++ b/packages/nextjs/src/index.ts @@ -52,7 +52,7 @@ export type WithUnkeyConfig = { type VerifyResponse = Awaited["keys"]["verify"]>>; export type UnkeyContext = VerifyResponse["result"]; -export type NextContext = { params: Record }; +export type NextContext = { params: Promise> }; export type NextRequestWithUnkeyContext = NextRequest & { unkey: UnkeyContext };