Pregunta

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
¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top