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 };