Replies: 4 comments 1 reply
-
What is the use case exactly here? You can use https://next-auth.js.org/configuration/initialization#advanced-initialization if you have a valid case. |
Beta Was this translation helpful? Give feedback.
-
@balazsorban44 The use case is not relevant here. The problem is it's impossible to use |
Beta Was this translation helpful? Give feedback.
-
@balazsorban44 I believe that this should be labeled as an enchantment instead of a question. |
Beta Was this translation helpful? Give feedback.
-
Related: #4647 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Provider type
Credentials
Environment
"next-auth": "^4.3.4"
Reproduction URL
null
Describe the issue
req
object passed toprovider.authorize()
is not compatible withgetToken({ req })
. Only query, body, headers and method properties are available, causinggetToken({ req })
to returnnull
.https://github.com/nextauthjs/next-auth/blob/main/packages/next-auth/src/core/routes/callback.ts#L334-L339
How to reproduce
Expected behavior
getToken({ req })
should return the token object properly.Beta Was this translation helpful? Give feedback.
All reactions