I am trying to manually create an OAuth2 workflow for an app. After authorizing the app the server sends back an authorization code to the url as a value to a parameter called code.
But I do not know why, it just doesn’t get the value of code there. I have ensured there are no spelling errors or case mismatches .The URL has another parameter named state. I am able to get that value without any problems.
This is odd. I can’t see anything wrong and it should work. I have done a quick test here where it does work. Editor link.
Have you tried a) recreating the custom state; b) adding a small delay before setting the state and c) using the debugger tool to see what is being passed?
Failing these then it might be worth logging a bug report with Bubble Support.
So, the calback url doesn’t have a debug mode by default. Therefore, I edited the url added debug_mode=true and inspected the element. Below is the screenshot.