0

I'm using the omniauth-google-oauth2 gem to sign in users with Google.

After the oauth response is handled in controller, the user is redirected to another page: /dashboard. When landing on this page - a octothorpe (aka a hash/number/pound) character is added to the URL:

https://myapp.tld/dashboard#

From what it seems, that pound sign is somehow coming with the oauth response. But I cannot gather how and why it consequently gets passed on to the final page.

Any clues how this happens OR otherwise how to clear a redirect from passing that character?

Fellow Stranger
  • 32,129
  • 35
  • 168
  • 232

1 Answers1

0

Make sure your response type is set to code in the URL you are providing the user.

response_type=code