-
Notifications
You must be signed in to change notification settings - Fork 3.9k
-
Using the spotify-auth code I always get the error "Error in the token Function: Error: State cookie not set or expired. Maybe you took too long to authorize. Please try again." Not sure how to fix this.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
It looks like you're encountering the same error across different scenarios involving the state cookie in Spotify Auth. I already provided a comprehensive set of troubleshooting steps in a previous answer. If you've gone through them and the issue persists, consider these additional options:
More Debugging Steps:
-
Double-Check Config: Ensure your Spotify Developer Dashboard settings match your application, especially redirect URIs.
-
Stack Trace: Check the complete error stack trace for more context on where the error is being thrown.
-
Code Examination: Sometimes errors are thrown in bundled/minified code, making it hard to debug. Use source maps or similar tools to find the original code location of the error.
-
Local Vs Production: If you are experiencing this issue in a production environment, try to replicate it in a local/dev environment where you have more control.
-
Issues or Pull Requests: Check if there are any issues or pull requests related to this problem in the repository where you found the
spotify-authcode. -
Community Support: Sometimes issues like this are better discussed in a community forum where other developers who've faced similar issues can help you out.
Feel free to provide more specific information about your setup if the issue persists.
Beta Was this translation helpful? Give feedback.