I am trying to create an app that implements OAuth. However, rather than using the FileOAuthStateStore that is outlined in the docs, I am trying to save the credentials/tokens etc to the database. I have been using this as a guide to do so.
After implementing that code everything seemed to be working fine until I tried to install the app to the workspace from {my_route}/slack/install. I consistently get an Oops, Something Went Wrong! error page with the reason invalid_state: The state parameter is no longer valid.
Moreover, looking at my logs I have noticed the following error occur:
WARNING:db:Failed to find any persistent data for state: e9b87291-2ec0-4842-b3e9-b95ee2f370ca - tuple indices must be integers or slices, not str
I suppose then that the actual error is related to that tuple indices must be integers or slices, not str error message and not, in fact, related to invalid state.
Is there anything I could do from my end to fix this?
Many thanks! 🙇