File tree 1 file changed +2
-2
lines changed
packages/next-auth/src/jwt
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { EncryptJWT, jwtDecrypt } from "jose"
2
2
import hkdf from "@panva/hkdf"
3
3
import { v4 as uuid } from "uuid"
4
4
import { SessionStore } from "../core/lib/cookie"
5
- import type { NextApiRequest } from "next"
5
+ import type { GetServerSidePropsContext , NextApiRequest } from "next"
6
6
import type { NextRequest } from "next/server"
7
7
import type { JWT , JWTDecodeParams , JWTEncodeParams , JWTOptions } from "./types"
8
8
import type { LoggerInstance } from ".."
@@ -38,7 +38,7 @@ export async function decode(params: JWTDecodeParams): Promise<JWT | null> {
38
38
39
39
export interface GetTokenParams < R extends boolean = false > {
40
40
/** The request containing the JWT either in the cookies or in the `Authorization` header. */
41
- req : NextRequest | NextApiRequest
41
+ req : GetServerSidePropsContext [ "req" ] | NextRequest | NextApiRequest
42
42
/**
43
43
* Use secure prefix for cookie name, unless URL in `NEXTAUTH_URL` is http://
44
44
* or not set (e.g. development or test instance) case use unprefixed name
You can’t perform that action at this time.
0 commit comments