AlgoAlchemist
AlgoAlchemist
KKinde
Created by AlgoAlchemist on 9/10/2024 in #💻┃support
Issue: State not found error with express-session and Slack auth
Hi, I'm using the @kinde-oss/kinde-typescript-sdk package for authentication with Slack in my Node.js app (using Express and MongoDB for session storage). Everything was working fine until I changed the cookie.domain in my express-session configuration from xyz.example.com to .example.com. After this change, I started encountering the following error during authentication: Authentication flow: Received: 123456** | Expected: State not found I reverted the domain change back to xyz.example.com, cleared all sessions from MongoDB, but the error persists. Would you have any insights into why the state is not being found, or any suggestions for troubleshooting this issue? Thanks in advance!
1 replies