depends on what type of mode you are using i guess. for me, I had to set a route /callback component and used router.replace to redirect it to the originating route which is /user for my case