After succesfull login, callback wont refresh properly

Hi. So im having a problem with login and refreshing properly.

After a succesful login, in my url i get ‘localhost:8080/?code=…’ a long url. And a status 302.
The callback is right in the auth0 callbacks. Im using a loginWithRedirect() method in my SPA app.

But if i hard refresh the app after login, it works, but the url is still there, what am i doing wrong?

Thanks in advance