IdentityModel / oidc-client-js

OpenID Connect (OIDC) and OAuth2 protocol support for browser-based JavaScript applications
Apache License 2.0
2.43k stars 841 forks source link

How can I remove querystring in code flow post redirect #1161

Closed sathyarajagopal closed 4 years ago

sathyarajagopal commented 4 years ago

Hello, I am consuming this library in a pure typescript application that is not using any framework like angular. After successful login using "code" flow, I am redirected to the home page of my app which is perfect. However in the URL, I am also seeing "code" and "state" codes appended as query string. How can I get rid of this?

brockallen commented 4 years ago

USe the history API.

sathyarajagopal commented 4 years ago

Is that API in this library? I don't see it though. Can you please point me to it?

brockallen commented 4 years ago

No, it's a browser API.

sathyarajagopal commented 4 years ago

This works. Great.