KindeK
Kinde15mo ago
6 replies
readme

Next.js Refresh Token null

Hi! In my Next.js application i'm trying to use the refresh token method from getKindeServerSession() in my route handler. I have the kinde debug mode set to
true
in my env variables. The problem is that i receive a
null
value upon logging the value of the refresh token. And I also get an error message that says:
Error: The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. Refresh token provided is malformed.
    at AuthorizationCode.eval (webpack-internal:///(rsc)/./node_modules/@kinde-oss/kinde-typescript-sdk/dist/sdk/oauth2-flows/AuthCodeAbstract.js:325:31)
    at step (webpack-internal:///(rsc)/./node_modules/@kinde-oss/kinde-typescript-sdk/dist/sdk/oauth2-flows/AuthCodeAbstract.js:53:23)
    at Object.eval [as next] (webpack-internal:///(rsc)/./node_modules/@kinde-oss/kinde-typescript-sdk/dist/sdk/oauth2-flows/AuthCodeAbstract.js:34:53)
    at fulfilled (webpack-internal:///(rsc)/./node_modules/@kinde-oss/kinde-typescript-sdk/dist/sdk/oauth2-flows/AuthCodeAbstract.js:25:58)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Was this page helpful?