What I think is that the script will get the authcode and sharedid in the callback function, but you may need to create a plugin or use the JS Toolbox to pass theses values to Bubble after (or a backend WF or a redirect that will add the parameters to url).
What did you try for callback?