Getting State not found error
Hi, My name is Karan, I have encountered a problem with kinde in nextjs
The issue is that I get "Error: State not found" when a client tried to login on my website, I have checked the docs for this issue and made sure that all the urls including the ones from my kinde dashboard and website env all point to the same domain

3 Replies
Hi Karan, thanks for reaching out!
Could you please let us know which version of Next.js you're using?
Hey I think we connected on the help chat on the website, I'll try updating the package version of kinde-oss and im not sure about the exact version, but im using nextjs 15 ( the version after security vulerability fix )
Hi Karan,
Thanks for the update!
Just to confirm, the version of the Kinde SDK you’re using is
We’ll be happy to assist further if needed!
@kinde-oss/kinde-auth-nextjs@2.5.6. We recently released version 2.6.2, which includes several improvements and fixes — including updates related to session and state handling.
Could you please try upgrading to the latest version (2.6.2) and let us know if the issue persists?We’ll be happy to assist further if needed!