diff --git a/packages/core/src/jwt.ts b/packages/core/src/jwt.ts index dd07f53de6..0277688999 100644 --- a/packages/core/src/jwt.ts +++ b/packages/core/src/jwt.ts @@ -137,6 +137,9 @@ export interface GetTokenParams /** * Takes an Auth.js request (`req`) and returns either the Auth.js issued JWT's payload, * or the raw JWT string. We look for the JWT in the either the cookies, or the `Authorization` header. + * + * Returns `null` if no JWT is found in the cookies or `Authorization` header, and also when + * the `Authorization` header's Bearer value contains malformed percent-encoding. */ export async function getToken( params: GetTokenParams