Next.js Discord

Discord Forum

Auth.js Oauth Token Request

Unanswered
English Spot posted this in #help-forum
Open in Discord
English SpotOP
I'm needing to add a dynamic URL parameter on the token request for a custom oauth provider. V4 docs had a request method that could be utilized

token: { url: "https://example.com/oauth/token", async request(context) { // context contains useful properties to help you make the request. const tokens = await makeTokenRequest(context) return { tokens } } }

I've tried the same thing using "next-auth": "^5.0.0-beta.19" and the request method is never executed

0 Replies