I was able to reproduce the issue.
I have created an internal ticket for it and am working on a fix.
Here’s the explanation of why this happened.
This bug is limited to Bungie.net (or any other server which includes intermediate redirections containing “code” query parameter)
These are the redirections which happen behind the scene
Since the param “code” was found in the 3rd step, we use it to make the call to get
Since that code was not
ACTUAL_CODE, it fails.