How can I not have code and state parameters in the URL after login?

I implemented the getting started guide for a SPA with VueJs. Everything works fine so far. I can login, logout and make API calls to my own API, which authorizes the user with the checkJwt middleware.

A problem I encountered was that after a successful login, a code and state parameter are present in the URL of the SPA after the redirect from the universal login page.
How can I remove that or prevent that from happening? Is that default behavior or did I something wrong?

Fixed the issue by adding window.history.pushState({},"", "/") in the mounted() function of the home page.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.