Lump
Lump
KKinde
Created by Lump on 1/8/2025 in #💻┃support
Error: State not found
I deployed the application on Vercel and when I try to log in, I have this error and redirection to this site. Before that on my localhost dev server no errors occurred, the application and kinde worked perfectly. Here are the changes I made before deploying to vecel: By the way, here is the vercel deployment link: https://blog-marshal-three.vercel.app By the way x2 ,here is github repository of my app: https://github.com/nikitodeon/BlogMarshal-deploy.git Env variables in project vercel settings : KINDE_SITE_URL=https://blog-marshal-three.vercel.app KINDE_POST_LOGIN_REDIRECT_URL=https://blog-marshal-three.vercel.app/api/auth/creation KINDE_POST_LOGOUT_REDIRECT_URL=https://blog-marshal-three.vercel.app In my app details on kinde.com: Allowed callback URLs http://localhost:3000/api/auth/kinde_callback https://blog-marshal-three.vercel.app/api/auth/kinde_callback Allowed logout redirect URLs http://localhost:3000 https://blog-marshal-three.vercel.app When i try to login it redirects me to: https://blog-marshal-three.vercel.app/api/auth/kinde_callback?code=tU7LFHr_7cL2hmSQw3U_lNuAluy02twcIkaUwSwXN_I.OkdL2yrLafLoZqoKF-aJUHG7txTJHFkV8SxFWUMxLcw&scope=openid%20profile%20email%20offline&state=613e0bd69bc958ef6f6ca4a348d6 And i see this error json on my screen: {"error":"Error: State not found.\nTo resolve this error please visit our docs https://docs.kinde.com/developer-tools/sdks/backend/nextjs-sdk/#state-not-found-errorAuthentication flow: Received: 613e0bd69bc958ef6f6ca4a348d6 | Expected: State not found"}
8 replies