I get an error when I go to the web page to log in
The error message returned: {"error":"invalid_state","error_description":"The state is missing or does not have enough characters and is therefore considered too weak. Request parameter 'state' must be at least be 8 characters long to ensure sufficient entropy."}
NextJS App Router
KINDE_CLIENT_ID= **
KINDE_CLIENT_SECRET= **
KINDE_ISSUER_URL=https://zuoplay.kinde.com
KINDE_SITE_URL=http://localhost:3000
KINDE_POST_LOGOUT_REDIRECT_URL=http://localhost:3000
KINDE_POST_LOGIN_REDIRECT_URL=http://localhost:3000/dashboard
7 Replies
code link ?
The route used: NextJS App Router, the following is the .env.local configuration file. Figure 1 shows the request parameters, and Figure 2 shows the error message returned.
Have you set this up in your code base? https://kinde.com/docs/developer-tools/nextjs-sdkv1/#persisting-app-state
Kinde Docs
NextJS App Router SDK v1 - Developer tools - Help center
Our developer tools provide everything you need to get started with Kinde.
I'm using SDK v2, modified it according to the documentation, and it still returns the same error
I reinstalled the sdk as well as deleted the old project. Still reporting an error ?????? I set it up exactly as documented ????
Found the reason, browser problem. google chrome version -> 122.0.6261.129
Very interesting, have you been able to get past the error?
I cleared my browser cache and then logged out of my browser's Google account. It is then accessible normally. Other browsers (Safari) are accessed normally
So all working fine now?