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 5b1aa47 commit 8afdfecCopy full SHA for 8afdfec
1 file changed
packages/core/src/jwt.ts
@@ -137,6 +137,9 @@ export interface GetTokenParams<R extends boolean = false>
137
/**
138
* Takes an Auth.js request (`req`) and returns either the Auth.js issued JWT's payload,
139
* or the raw JWT string. We look for the JWT in the either the cookies, or the `Authorization` header.
140
+ *
141
+ * Returns `null` if no JWT is found in the cookies or `Authorization` header, and also when
142
+ * the `Authorization` header's Bearer value contains malformed percent-encoding.
143
*/
144
export async function getToken<R extends boolean = false>(
145
params: GetTokenParams<R>
0 commit comments