I need to get the fragment of a OAUTH redirect url

Godot Version



I followed the example shown below to get OAUTH working from godot. However, I was using an App Key and App ID. The service I am trying to use allows the use of a short term token just using the App ID allowing me to keep the App key secret and not in the client application (game). When I try to use the same method to retrieve the token (as when I was using both the App ID and App Key) it seems the service has changed how they provide the token. Using this new method the token is placed in the fragment of the redirect url.


It seems the StreamPeer and StreamPeerTCP classes do not have a way to get to this data as when I get data from the stream I only receive “/” along with metadata.

Any ideas or better ways to go about this would be appreciated.