NextJS Kinde SDK not auto-refreshing tokens
I've wrapped my app inside of the authProvider component i've created following the docs, however tokens are not being refreshed as they should be.
9 Replies
These are my token expiry times i've currently set:
After the 60 seconds I refresh the page and am logged out
Let me mimic your setup and try this.
Hey @Daniel_Kinde, any update?
Hi, this is with our engineer, I hope to have answer very soon to get this resolved.
Hi @Daniel_Kinde, any update on this issue?
Hi @OmarUsman, Thank you for reaching out, it seems like the tokens in your NextJS Kinde SDK setup are not refreshing automatically, causing the user to be logged out after 60 seconds when the page is refreshed.
I will attempt to replicate the issue on my end to better understand the root cause. I'll get back to you shortly with an update.
Hi @OmarUsman
To help investigate the auto logout issue, could you please provide the following details:
- Could you confirm the version of the Next.js SDK you are currently using?
- Could you share the callback URLs you’ve configured in your Kinde dashboard to ensure they match your application setup?
These details will help us pinpoint the cause and assist you more effectively.