The solution I ended up using was to manually parse the contents of the url http://127.0.0.1:9000/?state=MY_STATE&code=MY_CODE#/oauth
using some string manipulation.
oAuth Response from Reddit appends query params before '#' in angular app
Domanda
Reddit is placing the query params before the #
in angular. Is this my fault or reddit's fault?
Whats a potential work around?
- On reddit, I have set my redirect url to
http://127.0.0.1:9000/#/oauth
- When I go through the oAuth process I get a response that looks like this:
http://127.0.0.1:9000/?state=MY_STATE&code=MY_CODE#/oauth
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow